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.006041/0.006042, allocations: 97.75 kB / 15.73 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 186.3 kB / 16.67 MB, free: 5.926 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.479/1.479, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.157/0.157, allocations: 5.202 MB / 295.7 MB, free: 3.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 59.89 kB / 408.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3602, allocations: 50.56 MB / 459.1 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.004397/0.3647, allocations: 3.167 MB / 462.3 MB, free: 17.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004192/0.3689, allocations: 3.193 MB / 465.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.3692, allocations: 3.125 kB / 465.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008653/0.37, allocations: 268.6 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002152/0.3722, allocations: 0.7994 MB / 466.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.3726, allocations: 110.5 kB / 466.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.3738, allocations: 0.836 MB / 467.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007385/0.3745, allocations: 0.5468 MB / 468 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/0.3751, allocations: 344.2 kB / 468.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005616/0.3756, allocations: 442.4 kB / 468.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.3758, allocations: 62.66 kB / 468.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001916/0.3777, allocations: 0.8977 MB / 469.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004129/0.3781, allocations: 350.5 kB / 470.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004449/0.3786, allocations: 470.5 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002311/0.3809, allocations: 1.525 MB / 472.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3809, allocations: 1.062 kB / 472.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3809, allocations: 0 / 472.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.3809, allocations: 0 / 472.1 MB, free: 12.43 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.003138/0.3841, allocations: 1.449 MB / 473.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3841, allocations: 9.75 kB / 473.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.3843, allocations: 84.81 kB / 473.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.3873, allocations: 367.5 kB / 474 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.3896, allocations: 1.107 MB / 475.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002581/0.3899, allocations: 165.4 kB / 475.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.3899, allocations: 38.28 kB / 475.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.3922, allocations: 0.8354 MB / 476.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3922, allocations: 0 / 476.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.371e-05/0.3923, allocations: 20.5 kB / 476.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.3923, allocations: 13.12 kB / 476.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003092/0.3954, allocations: 0.9526 MB / 477.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003527/0.399, allocations: 1.951 MB / 479.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.4001, allocations: 382.9 kB / 479.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.4013, allocations: 371.9 kB / 479.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.801e-05/0.4014, allocations: 1.406 kB / 479.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.4027, allocations: 461 kB / 480.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.545e-06/0.4027, allocations: 0 / 480.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003916/0.4066, allocations: 1.136 MB / 481.4 MB, free: 7.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.173e-05/0.4067, allocations: 161.1 kB / 481.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002704/0.4094, allocations: 1.472 MB / 483 MB, free: 6.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.4095, allocations: 27.2 kB / 483.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003361/0.4098, allocations: 396.3 kB / 483.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.05e-05/0.4099, allocations: 53.67 kB / 483.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.4101, allocations: 36.61 kB / 483.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.16e-05/0.4101, allocations: 307.5 kB / 483.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.4113, allocations: 366.2 kB / 484.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.4124, allocations: 410.7 kB / 484.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002039/0.4145, allocations: 0.6296 MB / 485.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4145, allocations: 0 / 485.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.002671/0.4172, allocations: 0.7764 MB / 486 MB, free: 4.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.4172, allocations: 5.812 kB / 486 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.4172, allocations: 3.984 kB / 486 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.4173, allocations: 0 / 486 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005689/0.4178, allocations: 116.3 kB / 486.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.4179, allocations: 3.938 kB / 486.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.4192, allocations: 162 kB / 486.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.4193, allocations: 9.719 kB / 486.3 MB, free: 4.805 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.0005217/0.4198, allocations: 317.3 kB / 486.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/0.4201, allocations: 86.03 kB / 486.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.4203, allocations: 87.91 kB / 486.8 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.4203, allocations: 1.625 kB / 486.8 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4204, allocations: 7.938 kB / 486.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4204, allocations: 1.344 kB / 486.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.4214, allocations: 0.7699 MB / 487.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4214, allocations: 0 / 487.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005577/0.422, allocations: 111.1 kB / 487.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.422, allocations: 0 / 487.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.422, allocations: 2.031 kB / 487.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.422, allocations: 1.125 kB / 487.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4221, allocations: 3.938 kB / 487.7 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.4245, allocations: 0.8233 MB / 488.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003907/0.4249, allocations: 235.7 kB / 488.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000217/0.4252, allocations: 6.125 kB / 488.7 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.4262, allocations: 142.6 kB / 488.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4264, allocations: 46.25 kB / 488.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.551e-05/0.4265, allocations: 7.375 kB / 488.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001932/0.4284, allocations: 1.101 MB / 490 MB, free: 2.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4284, allocations: 1.406 kB / 490 MB, free: 2.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001124/0.4295, allocations: 279 kB / 490.3 MB, free: 2.441 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.003668/0.4332, allocations: 1.619 MB / 491.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.4354, allocations: 0.7374 MB / 492.7 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4354, allocations: 0 / 492.7 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.4366, allocations: 387.6 kB / 493 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.438, allocations: 226.6 kB / 493.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/0.4598, allocations: 9.425 MB / 0.4909 GB, free: 5.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008185/0.4607, allocations: 1.057 MB / 0.4919 GB, free: 4.898 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006124/0.4613, allocations: 156.5 kB / 0.4921 GB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005379/0.4619, allocations: 267.3 kB / 0.4923 GB, free: 4.484 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4619, allocations: 0 / 0.4923 GB, free: 4.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05903/0.5209, allocations: 25.33 MB / 0.5171 GB, free: 11.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.428/9.949, allocations: 8 kB / 0.5171 GB, free: 11.37 MB / 398.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)