Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",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.001013/0.001013, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001017/0.001017, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.192/1.192, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 56.61 kB / 280.7 MB, free: 3.102 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0755/0.0768, allocations: 46.63 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003746/0.0806, allocations: 2.437 MB / 329.8 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.08255, allocations: 1.256 MB / 331.1 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.08274, allocations: 11.94 kB / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006695/0.08341, allocations: 234.9 kB / 331.3 MB, free: 440 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.08375, allocations: 155.2 kB / 331.5 MB, free: 284 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.08433, allocations: 287.5 kB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.08477, allocations: 463.7 kB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003301/0.08511, allocations: 209.8 kB / 332.4 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.08531, allocations: 191.2 kB / 332.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.08554, allocations: 219 kB / 332.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.94e-05/0.0856, allocations: 36 kB / 332.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.08583, allocations: 123.9 kB / 333 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.08597, allocations: 131.5 kB / 333.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.08616, allocations: 210.7 kB / 333.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005141/0.08668, allocations: 0.5337 MB / 333.8 MB, free: 13.9 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.08669, allocations: 0 / 333.8 MB, free: 13.9 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.0867, allocations: 0 / 333.8 MB, free: 13.9 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.08671, allocations: 0 / 333.8 MB, free: 13.9 MB / 286.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.001215/0.08793, allocations: 0.8551 MB / 334.7 MB, free: 12.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.08797, allocations: 8.031 kB / 334.7 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.253e-05/0.08805, allocations: 74.7 kB / 334.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.257e-05/0.08815, allocations: 60.28 kB / 334.8 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.08858, allocations: 387 kB / 335.2 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.478e-05/0.08865, allocations: 63 kB / 335.3 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.694e-05/0.08871, allocations: 43.98 kB / 335.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.08929, allocations: 424.7 kB / 335.7 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.08931, allocations: 7.938 kB / 335.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.08935, allocations: 15.98 kB / 335.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.08938, allocations: 12.44 kB / 335.7 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.08981, allocations: 265.5 kB / 336 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.09147, allocations: 1.682 MB / 337.7 MB, free: 9.785 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005114/0.092, allocations: 311.8 kB / 338 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.09221, allocations: 122.5 kB / 338.1 MB, free: 9.324 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.45e-05/0.09227, allocations: 11.98 kB / 338.1 MB, free: 9.312 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004054/0.09268, allocations: 339.6 kB / 338.5 MB, free: 8.941 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.046e-06/0.09269, allocations: 0 / 338.5 MB, free: 8.941 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008828/0.09358, allocations: 478.6 kB / 338.9 MB, free: 8.461 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.558e-05/0.09368, allocations: 170.2 kB / 339.1 MB, free: 8.258 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000447/0.09413, allocations: 485.2 kB / 339.6 MB, free: 7.777 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.09418, allocations: 49.62 kB / 339.6 MB, free: 7.723 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.09433, allocations: 228.6 kB / 339.8 MB, free: 7.496 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.09441, allocations: 86.98 kB / 339.9 MB, free: 7.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.09455, allocations: 118.2 kB / 340 MB, free: 7.289 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.09467, allocations: 358.7 kB / 340.4 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.09489, allocations: 117 kB / 340.5 MB, free: 6.816 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.0952, allocations: 266.7 kB / 340.8 MB, free: 6.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005472/0.09576, allocations: 430.7 kB / 341.2 MB, free: 6.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.09577, allocations: 0 / 341.2 MB, free: 6.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000709/0.09648, allocations: 470.3 kB / 341.6 MB, free: 5.535 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.09653, allocations: 42.09 kB / 341.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.09655, allocations: 8 kB / 341.7 MB, free: 5.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.09657, allocations: 8 kB / 341.7 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.0967, allocations: 43.86 kB / 341.7 MB, free: 5.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.09672, allocations: 7.938 kB / 341.7 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.09694, allocations: 51.66 kB / 341.8 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.09698, allocations: 24 kB / 341.8 MB, free: 5.348 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002421/0.09723, allocations: 256.9 kB / 342.1 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.09731, allocations: 47.44 kB / 342.1 MB, free: 5.035 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000457/0.09777, allocations: 261.2 kB / 342.4 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.09779, allocations: 4 kB / 342.4 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.0978, allocations: 4 kB / 342.4 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.09781, allocations: 3.984 kB / 342.4 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009417/0.09876, allocations: 0.7789 MB / 343.2 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.09877, allocations: 3.938 kB / 343.2 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.284e-05/0.09883, allocations: 19.92 kB / 343.2 MB, free: 3.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.09884, allocations: 3.938 kB / 343.2 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.09887, allocations: 15.98 kB / 343.2 MB, free: 3.875 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.09888, allocations: 0 / 343.2 MB, free: 3.875 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.09888, allocations: 0 / 343.2 MB, free: 3.875 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006562/0.09954, allocations: 0.5172 MB / 343.7 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.8e-05/0.09963, allocations: 116.6 kB / 343.8 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.77e-05/0.09971, allocations: 23.94 kB / 343.9 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.09991, allocations: 23.97 kB / 343.9 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-05/0.1, allocations: 39.95 kB / 343.9 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.968e-05/0.1, allocations: 16 kB / 343.9 MB, free: 3.098 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002971/0.1004, allocations: 323.1 kB / 344.3 MB, free: 2.789 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1004, allocations: 0 / 344.3 MB, free: 2.789 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004112/0.1008, allocations: 116 kB / 344.4 MB, free: 2.676 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.001703/0.1025, allocations: 1.4 MB / 345.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006445/0.1031, allocations: 431.2 kB / 346.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1032, allocations: 4 kB / 346.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.1035, allocations: 247 kB / 346.4 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.104, allocations: 73.45 kB / 346.5 MB, free: 492 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004219/0.1082, allocations: 4.075 MB / 350.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/0.1085, allocations: 0.84 MB / 351.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.1087, allocations: 83.81 kB / 351.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.1089, allocations: 163.4 kB / 351.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1089, allocations: 0 / 351.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.29/2.398, allocations: 9.906 MB / 361.6 MB, free: 1.113 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/14.29, allocations: 4 kB / 361.6 MB, free: 1.109 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches