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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 125 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 47.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09384/0.09532, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004116/0.09943, allocations: 2.477 MB / 420.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00248/0.1019, allocations: 1.336 MB / 421.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.1021, allocations: 11.94 kB / 421.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007572/0.1029, allocations: 241.5 kB / 421.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004004/0.1033, allocations: 167.2 kB / 422 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007451/0.104, allocations: 294.3 kB / 422.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.1046, allocations: 479.7 kB / 422.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003242/0.1049, allocations: 153.9 kB / 422.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.1051, allocations: 191.2 kB / 423.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.1054, allocations: 223 kB / 423.3 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.944e-05/0.1055, allocations: 32 kB / 423.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.1057, allocations: 131.9 kB / 423.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.1059, allocations: 119.6 kB / 423.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.1061, allocations: 214.7 kB / 423.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007173/0.1068, allocations: 0.5638 MB / 424.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1068, allocations: 0 / 424.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1068, allocations: 0 / 424.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.1068, allocations: 0 / 424.4 MB, free: 6.016 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.001488/0.1083, allocations: 0.8665 MB / 425.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1083, allocations: 12.03 kB / 425.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.779e-05/0.1084, allocations: 74.72 kB / 425.3 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.1085, allocations: 64.5 kB / 425.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006066/0.1091, allocations: 414.7 kB / 425.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.862e-05/0.1092, allocations: 58.7 kB / 425.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.507e-05/0.1093, allocations: 40 kB / 425.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007272/0.11, allocations: 424.7 kB / 426.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.11, allocations: 0 / 426.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/0.1101, allocations: 20 kB / 426.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.1101, allocations: 12.44 kB / 426.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005074/0.1106, allocations: 273.4 kB / 426.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.1127, allocations: 1.667 MB / 428.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005917/0.1133, allocations: 271.9 kB / 428.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.1135, allocations: 110.5 kB / 428.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.443e-05/0.1136, allocations: 8 kB / 428.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004973/0.1141, allocations: 344.1 kB / 429 MB, free: 1.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.954e-06/0.1141, allocations: 4 kB / 429 MB, free: 1.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001006/0.1151, allocations: 482.9 kB / 429.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.1152, allocations: 166.2 kB / 429.6 MB, free: 404 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005875/0.1158, allocations: 497.4 kB / 430.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.1158, allocations: 37.7 kB / 430.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.116, allocations: 236.8 kB / 430.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.523e-05/0.1161, allocations: 91.36 kB / 430.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.1163, allocations: 114.2 kB / 430.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.1164, allocations: 354.8 kB / 430.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.1167, allocations: 117.1 kB / 431 MB, free: 14.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.117, allocations: 274.7 kB / 431.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006105/0.1176, allocations: 427.1 kB / 431.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1176, allocations: 0 / 431.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008092/0.1185, allocations: 483.2 kB / 432.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.385e-05/0.1185, allocations: 33.7 kB / 432.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1185, allocations: 4 kB / 432.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/0.1185, allocations: 8 kB / 432.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.1187, allocations: 47.84 kB / 432.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.8e-05/0.1187, allocations: 7.938 kB / 432.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.119, allocations: 59.64 kB / 432.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.339e-05/0.119, allocations: 24 kB / 432.4 MB, free: 13.46 MB / 366.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.0003141/0.1193, allocations: 244.8 kB / 432.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.527e-05/0.1194, allocations: 47.7 kB / 432.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005169/0.1199, allocations: 269.2 kB / 432.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.1199, allocations: 7.938 kB / 432.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.1199, allocations: 3.938 kB / 432.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1199, allocations: 8 kB / 432.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.1211, allocations: 0.7726 MB / 433.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1211, allocations: 0 / 433.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.906e-05/0.1211, allocations: 19.86 kB / 433.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/0.1211, allocations: 7.938 kB / 433.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.525e-05/0.1212, allocations: 8 kB / 433.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.1212, allocations: 7.984 kB / 433.7 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1212, allocations: 0 / 433.7 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007446/0.1219, allocations: 0.5213 MB / 434.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.122, allocations: 120.7 kB / 434.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.893e-05/0.1221, allocations: 19.98 kB / 434.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.1223, allocations: 19.98 kB / 434.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.1224, allocations: 43.89 kB / 434.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.802e-05/0.1225, allocations: 15.98 kB / 434.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003614/0.1228, allocations: 323.1 kB / 434.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1228, allocations: 0 / 434.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.1233, allocations: 123.7 kB / 434.9 MB, free: 10.78 MB / 366.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.002618/0.1259, allocations: 1.415 MB / 436.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007095/0.1266, allocations: 367.6 kB / 436.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1266, allocations: 0 / 436.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003401/0.127, allocations: 203.2 kB / 436.9 MB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005113/0.1275, allocations: 85.73 kB / 437 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00534/0.1328, allocations: 4.026 MB / 441 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.1333, allocations: 0.8364 MB / 441.8 MB, free: 3.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002246/0.1335, allocations: 87.23 kB / 441.9 MB, free: 3.656 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.1338, allocations: 159.4 kB / 442.1 MB, free: 3.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1338, allocations: 3.938 kB / 442.1 MB, free: 3.496 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.204/0.3377, allocations: 10.13 MB / 452.2 MB, free: 29.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/8.515, allocations: 8.641 kB / 452.2 MB, free: 29.73 MB / 366.1 MB " [Timeout remaining time 651] (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 --stepSize=0.00197981 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.047192411962897]