Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DeltaRobot_DeltaRobot.Tests.Switch2_test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) Using package DeltaRobot with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 193.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1609/0.1609, allocations: 5.214 MB / 295.6 MB, free: 2.992 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 59.91 kB / 357.3 MB, free: 1.691 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1132, allocations: 50.57 MB / 407.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004581/0.1178, allocations: 3.162 MB / 411 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004565/0.1224, allocations: 3.19 MB / 414.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002878/0.1228, allocations: 4 kB / 414.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008111/0.1236, allocations: 267.2 kB / 414.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.1255, allocations: 0.7946 MB / 415.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.1257, allocations: 115.8 kB / 415.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.1268, allocations: 0.8329 MB / 416.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006371/0.1274, allocations: 0.5538 MB / 416.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004412/0.1279, allocations: 350.7 kB / 417.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005137/0.1284, allocations: 442.3 kB / 417.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.1285, allocations: 64 kB / 417.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.1302, allocations: 0.8929 MB / 418.5 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003454/0.1306, allocations: 347.1 kB / 418.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004712/0.1311, allocations: 465.7 kB / 419.3 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.1329, allocations: 1.508 MB / 420.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1329, allocations: 0 / 420.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1329, allocations: 0 / 420.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.133, allocations: 0 / 420.8 MB, free: 2.078 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002769/0.1357, allocations: 1.413 MB / 422.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.1358, allocations: 12.03 kB / 422.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001164/0.1359, allocations: 86.72 kB / 422.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002862/0.1388, allocations: 354.7 kB / 422.7 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2281/0.3669, allocations: 1.092 MB / 423.7 MB, free: 47.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01117/0.3781, allocations: 2.485 MB / 426.2 MB, free: 47.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002079/0.3784, allocations: 39.47 kB / 426.3 MB, free: 47.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/0.3913, allocations: 3.369 MB / 429.6 MB, free: 47.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.3913, allocations: 3.312 kB / 429.6 MB, free: 47.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-05/0.3914, allocations: 18.28 kB / 429.7 MB, free: 47.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.3914, allocations: 13 kB / 429.7 MB, free: 47.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02359/0.415, allocations: 5.906 MB / 435.6 MB, free: 47.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003797/0.4189, allocations: 2.382 MB / 438 MB, free: 46.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/0.4309, allocations: 2.851 MB / 440.8 MB, free: 45.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01277/0.4437, allocations: 2.835 MB / 443.6 MB, free: 45.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.652e-05/0.4438, allocations: 8.062 kB / 443.7 MB, free: 45.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01299/0.4568, allocations: 2.966 MB / 446.6 MB, free: 45.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 7.083e-06/0.4569, allocations: 0 / 446.6 MB, free: 45.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.03524/0.4921, allocations: 8.307 MB / 454.9 MB, free: 41.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.508e-05/0.4923, allocations: 167.7 kB / 455.1 MB, free: 41.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.4955, allocations: 1.47 MB / 456.6 MB, free: 40.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.4957, allocations: 31.92 kB / 456.6 MB, free: 40.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003623/0.496, allocations: 392.9 kB / 457 MB, free: 40.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.848e-05/0.4962, allocations: 40.38 kB / 457 MB, free: 40.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4964, allocations: 61.58 kB / 457.1 MB, free: 40.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.678e-05/0.4965, allocations: 306.9 kB / 457.4 MB, free: 39.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01169/0.5082, allocations: 2.834 MB / 460.2 MB, free: 38.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01241/0.5206, allocations: 2.871 MB / 463.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02231/0.543, allocations: 5.045 MB / 468.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.5431, allocations: 0 / 468.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.02225/0.5653, allocations: 5.478 MB / 473.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.5654, allocations: 8.656 kB / 473.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.5654, allocations: 0 / 473.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.702e-05/0.5654, allocations: 5.781 kB / 473.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005328/0.5708, allocations: 1.228 MB / 474.8 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.134e-05/0.5708, allocations: 3.984 kB / 474.9 MB, free: 28.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005805/0.5767, allocations: 1.257 MB / 476.1 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.5768, allocations: 15.98 kB / 476.1 MB, free: 27.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (switch2.count,$PRE.switch2.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006853/0.5775, allocations: 316 kB / 476.4 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003559/0.5779, allocations: 78.97 kB / 476.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002482/0.5782, allocations: 91.27 kB / 476.6 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5782, allocations: 7.938 kB / 476.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.5782, allocations: 0 / 476.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5782, allocations: 2.438 kB / 476.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.5794, allocations: 0.9786 MB / 477.6 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.5795, allocations: 1.75 kB / 477.6 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005432/0.5849, allocations: 1.224 MB / 478.8 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-05/0.585, allocations: 4 kB / 478.8 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.094e-05/0.5851, allocations: 11.98 kB / 478.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.5851, allocations: 3.938 kB / 478.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5851, allocations: 0 / 478.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02199/0.6071, allocations: 5.504 MB / 484.3 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005209/0.6077, allocations: 238.2 kB / 484.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005659/0.6083, allocations: 4.547 kB / 484.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005844/0.6142, allocations: 1.24 MB / 485.8 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004329/0.6146, allocations: 159.8 kB / 486 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.451e-05/0.6147, allocations: 23.97 kB / 486 MB, free: 17.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001925/0.6167, allocations: 1.1 MB / 487.1 MB, free: 16.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.435e-06/0.6167, allocations: 7.172 kB / 487.1 MB, free: 16.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001227/0.6179, allocations: 314.8 kB / 487.4 MB, free: 16.21 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,switch2.count) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02306/0.641, allocations: 6.304 MB / 493.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.02222/0.6632, allocations: 5.705 MB / 499.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/0.6633, allocations: 0 / 499.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01152/0.6749, allocations: 2.979 MB / 0.4906 GB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/0.6769, allocations: 228.2 kB / 0.4908 GB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08656/0.7635, allocations: 24.14 MB / 0.5144 GB, free: 8.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009201/0.7644, allocations: 1.047 MB / 0.5154 GB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001178/0.7656, allocations: 248.3 kB / 0.5157 GB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007615/0.7664, allocations: 283.3 kB / 0.5159 GB, free: 7.176 MB / 382.1 MB Notification: Performance of SimCode: time 1.603e-06/0.7664, allocations: 0 / 0.5159 GB, free: 7.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07034/0.8368, allocations: 34 MB / 0.5491 GB, free: 5.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.275/9.111, allocations: 5.75 kB / 0.5491 GB, free: 5.453 MB / 414.1 MB (rm -f DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; mkfifo DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; head -c 1048576 < DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe >> ../files/DeltaRobot_DeltaRobot.Tests.Switch2_test.sim & python3 -m fmpy simulate --output-file DeltaRobot_DeltaRobot.Tests.Switch2_test_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)