Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_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.001074/0.001074, allocations: 106.9 kB / 16.62 MB, free: 6.809 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.001072/0.001072, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.328/1.328, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009898/0.0009899, allocations: 42.98 kB / 300.2 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09492/0.09592, allocations: 49.45 MB / 349.7 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004314/0.1003, allocations: 2.491 MB / 352.2 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.1027, allocations: 1.298 MB / 353.5 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003554/0.1031, allocations: 11.94 kB / 353.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009026/0.1041, allocations: 219.3 kB / 353.7 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.1046, allocations: 139.5 kB / 353.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008092/0.1054, allocations: 263 kB / 354.1 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000713/0.1062, allocations: 479.7 kB / 354.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003994/0.1066, allocations: 205.8 kB / 354.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.1069, allocations: 195.2 kB / 354.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003238/0.1072, allocations: 215 kB / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.341e-05/0.1073, allocations: 36 kB / 355.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002719/0.1076, allocations: 123.9 kB / 355.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1078, allocations: 123.6 kB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.108, allocations: 218.7 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007176/0.1087, allocations: 0.5336 MB / 356.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1087, allocations: 0 / 356.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1088, allocations: 0 / 356.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.905e-05/0.1088, allocations: 0 / 356.2 MB, free: 14.14 MB / 302.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.001566/0.1103, allocations: 0.8515 MB / 357 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1104, allocations: 12.03 kB / 357 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.787e-05/0.1105, allocations: 70.72 kB / 357.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.1106, allocations: 56.28 kB / 357.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000535/0.1112, allocations: 394.7 kB / 357.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.567e-05/0.1113, allocations: 58.7 kB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.1113, allocations: 43.98 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006973/0.112, allocations: 428.7 kB / 358.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.1121, allocations: 0 / 358.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.1121, allocations: 12 kB / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.62e-05/0.1121, allocations: 16.38 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.1126, allocations: 273.5 kB / 358.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.1147, allocations: 1.682 MB / 360 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.1154, allocations: 292 kB / 360.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.1156, allocations: 126.5 kB / 360.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.358e-05/0.1157, allocations: 16 kB / 360.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004861/0.1162, allocations: 324.6 kB / 360.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.515e-06/0.1162, allocations: 0 / 360.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009671/0.1172, allocations: 486.8 kB / 361.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.36e-05/0.1173, allocations: 166.2 kB / 361.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005594/0.1178, allocations: 497.1 kB / 361.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.1179, allocations: 45.7 kB / 362 MB, free: 7.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.1181, allocations: 232.5 kB / 362.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.258e-05/0.1182, allocations: 82.98 kB / 362.3 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.1184, allocations: 118.1 kB / 362.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1185, allocations: 358.8 kB / 362.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.1188, allocations: 117.1 kB / 362.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/0.1191, allocations: 270.6 kB / 363.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006039/0.1198, allocations: 422.8 kB / 363.5 MB, free: 6.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.1198, allocations: 8 kB / 363.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008455/0.1206, allocations: 482.1 kB / 364 MB, free: 5.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.104e-05/0.1207, allocations: 34.17 kB / 364 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.1207, allocations: 8 kB / 364 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.1207, allocations: 4 kB / 364 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.1209, allocations: 43.91 kB / 364.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.1209, allocations: 11.94 kB / 364.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.1212, allocations: 55.59 kB / 364.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.927e-05/0.1212, allocations: 20 kB / 364.2 MB, free: 5.598 MB / 302.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.0002932/0.1215, allocations: 248.6 kB / 364.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.059e-05/0.1216, allocations: 51.42 kB / 364.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00048/0.1221, allocations: 261.3 kB / 364.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1221, allocations: 4 kB / 364.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.1222, allocations: 0 / 364.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.1222, allocations: 3.938 kB / 364.7 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1232, allocations: 0.7767 MB / 365.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.1233, allocations: 7.938 kB / 365.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.081e-05/0.1233, allocations: 15.92 kB / 365.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1233, allocations: 4 kB / 365.5 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.175e-05/0.1234, allocations: 19.92 kB / 365.5 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-06/0.1234, allocations: 4 kB / 365.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.1234, allocations: 7.922 kB / 365.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007309/0.1241, allocations: 0.5171 MB / 366.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.825e-05/0.1242, allocations: 120.5 kB / 366.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.264e-05/0.1243, allocations: 15.98 kB / 366.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.1245, allocations: 19.98 kB / 366.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.1247, allocations: 43.95 kB / 366.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/0.1247, allocations: 19.98 kB / 366.3 MB, free: 3.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003473/0.1251, allocations: 315.1 kB / 366.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1251, allocations: 0 / 366.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005207/0.1256, allocations: 123.7 kB / 366.7 MB, free: 2.922 MB / 302.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.002085/0.1277, allocations: 1.413 MB / 368.1 MB, free: 1.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000794/0.1285, allocations: 423.1 kB / 368.5 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1285, allocations: 0 / 368.5 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003539/0.1289, allocations: 239.4 kB / 368.8 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005742/0.1295, allocations: 89.89 kB / 368.9 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.18/0.3094, allocations: 4.177 MB / 373 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.3099, allocations: 0.8387 MB / 373.9 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002558/0.3101, allocations: 72.03 kB / 374 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.3103, allocations: 162.3 kB / 374.1 MB, free: 23.26 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3103, allocations: 0 / 374.1 MB, free: 23.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3132/0.6236, allocations: 9.686 MB / 383.8 MB, free: 20.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002901/0.6239, allocations: 229.7 kB / 384 MB, free: 20.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.836, allocations: 4.766 kB / 384 MB, free: 20.49 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches