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.0008493/0.0008492, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004732/0.004732, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.189/1.189, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1291/0.1291, allocations: 5.194 MB / 296.6 MB, free: 4.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002606, allocations: 8 kB / 359 MB, free: 1.352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07682/0.07709, allocations: 51.55 MB / 410.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003649/0.08078, allocations: 4.187 MB / 414.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003997/0.08479, allocations: 3.449 MB / 418.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.08499, allocations: 7.938 kB / 418.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005981/0.0856, allocations: 259.3 kB / 418.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001184/0.08679, allocations: 0.6937 MB / 419.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.08698, allocations: 91.91 kB / 419.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009297/0.08792, allocations: 1.051 MB / 420.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005334/0.08846, allocations: 0.5275 MB / 420.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002665/0.08873, allocations: 266.8 kB / 421.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003836/0.08913, allocations: 382.3 kB / 421.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.08919, allocations: 23.94 kB / 421.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.0903, allocations: 0.8694 MB / 422.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.09053, allocations: 299 kB / 422.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003167/0.09086, allocations: 427.4 kB / 423.1 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1587/0.2495, allocations: 1.439 MB / 424.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2496, allocations: 0 / 424.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2496, allocations: 0.75 kB / 424.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.356e-05/0.2496, allocations: 0 / 424.5 MB, free: 36.73 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.002257/0.2519, allocations: 1.259 MB / 425.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2519, allocations: 13.19 kB / 425.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.252, allocations: 85.75 kB / 425.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002703/0.2547, allocations: 352.4 kB / 426.2 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.2561, allocations: 1.106 MB / 427.3 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.009952/0.2661, allocations: 2.501 MB / 429.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.2662, allocations: 35.56 kB / 429.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.2779, allocations: 3.415 MB / 433.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.278, allocations: 0 / 433.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.002e-05/0.278, allocations: 15.69 kB / 433.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2781, allocations: 9.719 kB / 433.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02187/0.2999, allocations: 5.988 MB / 439.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002911/0.3029, allocations: 2.39 MB / 441.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/0.3141, allocations: 2.894 MB / 444.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01163/0.3257, allocations: 2.879 MB / 447.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.3258, allocations: 3.797 kB / 447.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0114/0.3372, allocations: 3.017 MB / 450.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 4.007e-06/0.3372, allocations: 0 / 450.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.03309/0.3703, allocations: 8.438 MB / 458.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/0.3704, allocations: 160.1 kB / 459.1 MB, free: 31.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002447/0.3729, allocations: 1.474 MB / 460.5 MB, free: 30.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.679e-05/0.373, allocations: 35.23 kB / 460.6 MB, free: 30.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/0.3733, allocations: 393 kB / 461 MB, free: 30.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.3734, allocations: 40.95 kB / 461 MB, free: 30.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.669e-05/0.3735, allocations: 16.44 kB / 461 MB, free: 30.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.775e-05/0.3735, allocations: 312.5 kB / 461.3 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01096/0.3845, allocations: 2.881 MB / 464.2 MB, free: 28.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/0.3955, allocations: 2.923 MB / 467.1 MB, free: 27.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02057/0.4161, allocations: 5.138 MB / 472.3 MB, free: 25.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.4162, allocations: 0 / 472.3 MB, free: 25.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.02106/0.4372, allocations: 5.559 MB / 477.8 MB, free: 21.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.4373, allocations: 9.859 kB / 477.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.4373, allocations: 5.875 kB / 477.8 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.4373, allocations: 0.5625 kB / 477.8 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005125/0.4425, allocations: 1.252 MB / 479.1 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.4425, allocations: 4 kB / 479.1 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005678/0.4482, allocations: 1.286 MB / 480.4 MB, free: 18.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.405e-05/0.4482, allocations: 15.98 kB / 480.4 MB, free: 18.47 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.0004109/0.4487, allocations: 313.9 kB / 480.7 MB, free: 18.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.4489, allocations: 80.19 kB / 480.8 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.449, allocations: 90.22 kB / 480.9 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.449, allocations: 0.5156 kB / 480.9 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.449, allocations: 3.984 kB / 480.9 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.4491, allocations: 6.625 kB / 480.9 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009319/0.45, allocations: 0.9724 MB / 481.9 MB, free: 17.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.45, allocations: 0 / 481.9 MB, free: 17.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005354/0.4554, allocations: 1.259 MB / 483.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4554, allocations: 0 / 483.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/0.4554, allocations: 15.11 kB / 483.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4554, allocations: 0 / 483.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4554, allocations: 1.188 kB / 483.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02146/0.4769, allocations: 5.602 MB / 488.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002911/0.4772, allocations: 239 kB / 489 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.4774, allocations: 8 kB / 489 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005568/0.483, allocations: 1.267 MB / 490.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/0.4833, allocations: 151.8 kB / 490.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/0.4833, allocations: 34.77 kB / 490.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001356/0.4847, allocations: 1.1 MB / 491.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4847, allocations: 0 / 491.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007308/0.4854, allocations: 315.7 kB / 491.8 MB, free: 7.086 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.02173/0.5072, allocations: 6.391 MB / 498.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.02254/0.5297, allocations: 5.788 MB / 0.4922 GB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5297, allocations: 0 / 0.4922 GB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01173/0.5415, allocations: 3.026 MB / 0.4951 GB, free: 7.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.5425, allocations: 202.1 kB / 0.4953 GB, free: 7.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08012/0.6226, allocations: 24.58 MB / 0.5193 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005415/0.6232, allocations: 1.047 MB / 0.5204 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008367/0.624, allocations: 248.3 kB / 0.5206 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005961/0.6246, allocations: 283.3 kB / 0.5209 GB, free: 13.38 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6246, allocations: 0 / 0.5209 GB, free: 13.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04514/0.6698, allocations: 32.53 MB / 0.5526 GB, free: 13.18 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.67, allocations: 169.1 kB / 0.5528 GB, free: 12.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.692, allocations: 0 / 0.5528 GB, free: 12.92 MB / 430.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)