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.001382/0.001382, 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.001409/0.001409, allocations: 192.9 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.342/1.342, 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.1442/0.1442, allocations: 5.209 MB / 295.6 MB, free: 2.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 63.88 kB / 357.3 MB, free: 1.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09405, allocations: 50.57 MB / 407.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004488/0.09858, allocations: 3.159 MB / 411 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00436/0.103, allocations: 3.182 MB / 414.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002855/0.1033, allocations: 4 kB / 414.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008226/0.1041, allocations: 267.2 kB / 414.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00191/0.1061, allocations: 0.7907 MB / 415.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.1064, allocations: 123.5 kB / 415.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.1075, allocations: 0.8406 MB / 416.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006946/0.1083, allocations: 0.5499 MB / 416.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005334/0.1088, allocations: 350.7 kB / 417.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006516/0.1095, allocations: 438.4 kB / 417.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.1097, allocations: 60 kB / 417.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.1113, allocations: 0.8968 MB / 418.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003747/0.1116, allocations: 355 kB / 418.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000605/0.1123, allocations: 465.7 kB / 419.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001804/0.1141, allocations: 1.504 MB / 420.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1141, allocations: 4 kB / 420.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1141, allocations: 0 / 420.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.527e-05/0.1141, allocations: 0 / 420.8 MB, free: 2.105 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.003065/0.1172, allocations: 1.409 MB / 422.2 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.1173, allocations: 8.031 kB / 422.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.1174, allocations: 98.64 kB / 422.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003001/0.1204, allocations: 362.7 kB / 422.7 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1854/0.3058, allocations: 1.081 MB / 423.8 MB, free: 47.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01104/0.3169, allocations: 2.486 MB / 426.2 MB, free: 47.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.3171, allocations: 33.97 kB / 426.3 MB, free: 47.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/0.3296, allocations: 3.373 MB / 429.6 MB, free: 46.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3297, allocations: 3.156 kB / 429.7 MB, free: 46.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.381e-05/0.3298, allocations: 13.44 kB / 429.7 MB, free: 46.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3298, allocations: 10.09 kB / 429.7 MB, free: 46.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02337/0.3532, allocations: 5.907 MB / 435.6 MB, free: 46.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003151/0.3563, allocations: 2.388 MB / 438 MB, free: 45.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/0.3682, allocations: 2.846 MB / 440.8 MB, free: 45.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01228/0.3805, allocations: 2.839 MB / 443.7 MB, free: 45.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.3806, allocations: 3.672 kB / 443.7 MB, free: 45.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01265/0.3933, allocations: 2.966 MB / 446.6 MB, free: 45.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 3.887e-06/0.3933, allocations: 0 / 446.6 MB, free: 45.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.04052/0.4338, allocations: 8.297 MB / 454.9 MB, free: 41.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.4339, allocations: 174.8 kB / 455.1 MB, free: 41.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/0.4375, allocations: 1.469 MB / 456.6 MB, free: 40.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.4376, allocations: 31.27 kB / 456.6 MB, free: 40.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003781/0.438, allocations: 392.6 kB / 457 MB, free: 40.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.4382, allocations: 37.86 kB / 457 MB, free: 40.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003151/0.4385, allocations: 61.38 kB / 457.1 MB, free: 40.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.003e-05/0.4386, allocations: 312.2 kB / 457.4 MB, free: 39.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01319/0.4518, allocations: 2.827 MB / 460.2 MB, free: 38.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01168/0.4635, allocations: 2.875 MB / 463.1 MB, free: 36.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02199/0.4855, allocations: 5.044 MB / 468.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.4855, allocations: 7.859 kB / 468.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.02212/0.5076, allocations: 5.477 MB / 473.6 MB, free: 29.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.5077, allocations: 7.406 kB / 473.6 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.5077, allocations: 0 / 473.6 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.5077, allocations: 0 / 473.6 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005379/0.5131, allocations: 1.235 MB / 474.8 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.5131, allocations: 4.656 kB / 474.9 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005914/0.5191, allocations: 1.256 MB / 476.1 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.042e-05/0.5192, allocations: 15.98 kB / 476.1 MB, free: 27.4 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.0004473/0.5196, allocations: 318.7 kB / 476.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002465/0.5199, allocations: 78.97 kB / 476.5 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001555/0.52, allocations: 87.28 kB / 476.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.52, allocations: 4.688 kB / 476.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.5201, allocations: 0.5625 kB / 476.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.5201, allocations: 6.547 kB / 476.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009817/0.521, allocations: 0.9808 MB / 477.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5211, allocations: 0 / 477.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005403/0.5265, allocations: 1.22 MB / 478.8 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.5265, allocations: 4 kB / 478.8 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.702e-05/0.5266, allocations: 17.81 kB / 478.8 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.5266, allocations: 10.84 kB / 478.8 MB, free: 24.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5266, allocations: 0 / 478.8 MB, free: 24.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02178/0.5484, allocations: 5.494 MB / 484.3 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003819/0.5488, allocations: 239.1 kB / 484.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002518/0.549, allocations: 11.98 kB / 484.6 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005761/0.5548, allocations: 1.24 MB / 485.8 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/0.5551, allocations: 160.8 kB / 486 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.888e-05/0.5552, allocations: 19.97 kB / 486 MB, free: 17.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001488/0.5567, allocations: 1.109 MB / 487.1 MB, free: 16.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.192e-06/0.5567, allocations: 4 kB / 487.1 MB, free: 16.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008074/0.5575, allocations: 311 kB / 487.4 MB, free: 16.04 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.02354/0.5811, allocations: 6.3 MB / 493.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.02292/0.6041, allocations: 5.704 MB / 499.4 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.6041, allocations: 4 kB / 499.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01134/0.6155, allocations: 2.978 MB / 0.4906 GB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.6171, allocations: 234.5 kB / 0.4908 GB, free: 0.8555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08667/0.7038, allocations: 24.13 MB / 0.5144 GB, free: 8.617 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007695/0.7046, allocations: 1.055 MB / 0.5154 GB, free: 7.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001134/0.7058, allocations: 240 kB / 0.5157 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007431/0.7065, allocations: 283.3 kB / 0.5159 GB, free: 7.043 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7066, allocations: 0 / 0.5159 GB, free: 7.043 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06486/0.7714, allocations: 34 MB / 0.5491 GB, free: 5.312 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.084/8.856, allocations: 0 / 0.5491 GB, free: 5.312 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_DeltaRobot_DeltaRobot_Tests_Switch2_test_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)