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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008605/0.0008605, allocations: 83.64 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004678/0.004678, allocations: 162.7 kB / 24.69 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8632/0.8632, allocations: 158.6 MB / 186.5 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 298.4 MB, free: 3.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.974e-05/2.165e-05, allocations: 2.281 kB / 298.4 MB, free: 3.609 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003189/0.003211, allocations: 2.371 MB / 300.8 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1531/0.1563, allocations: 1.217 MB / 302 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000517/0.1568, allocations: 14.28 kB / 302 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000911/0.1577, allocations: 241.9 kB / 302.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004382/0.1581, allocations: 169.4 kB / 302.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008197/0.159, allocations: 281.3 kB / 302.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006704/0.1596, allocations: 482.8 kB / 303.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002844/0.1599, allocations: 135.5 kB / 303.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003322/0.1603, allocations: 271.2 kB / 303.6 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1605, allocations: 172 kB / 303.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.628e-05/0.1606, allocations: 38.38 kB / 303.8 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.1608, allocations: 131.8 kB / 303.9 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.161, allocations: 128.2 kB / 304 MB, free: 13 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.1611, allocations: 132.5 kB / 304.2 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007041/0.1618, allocations: 0.5777 MB / 304.7 MB, free: 12.9 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1618, allocations: 1.938 kB / 304.7 MB, free: 12.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1618, allocations: 0.5 kB / 304.7 MB, free: 12.9 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1618, allocations: 0 / 304.7 MB, free: 12.9 MB / 282.7 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.001068/0.1629, allocations: 0.7924 MB / 305.5 MB, free: 12.37 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.1629, allocations: 15.38 kB / 305.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.077e-05/0.163, allocations: 76.23 kB / 305.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.044e-05/0.1631, allocations: 56.86 kB / 305.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.1635, allocations: 329 kB / 306 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.827e-05/0.1636, allocations: 85 kB / 306.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.1636, allocations: 42.42 kB / 306.1 MB, free: 11.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005634/0.1642, allocations: 449.5 kB / 306.6 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1642, allocations: 7.906 kB / 306.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.1642, allocations: 15.05 kB / 306.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.583e-05/0.1642, allocations: 16.39 kB / 306.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003697/0.1646, allocations: 299 kB / 306.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.1658, allocations: 1.553 MB / 308.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004345/0.1662, allocations: 304.6 kB / 308.8 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.1664, allocations: 144 kB / 308.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.078e-05/0.1664, allocations: 13.91 kB / 308.9 MB, free: 10.14 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003445/0.1668, allocations: 369.1 kB / 309.3 MB, free: 9.883 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.623e-06/0.1668, allocations: 0 / 309.3 MB, free: 9.883 MB / 282.7 MB Notification: Performance of matching and sorting (n=37): time 0.000688/0.1675, allocations: 0.5394 MB / 309.8 MB, free: 9.621 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.1675, allocations: 140.3 kB / 309.9 MB, free: 9.461 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000396/0.1679, allocations: 496.4 kB / 310.4 MB, free: 9.227 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.168, allocations: 39.73 kB / 310.5 MB, free: 9.188 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.1681, allocations: 235.8 kB / 310.7 MB, free: 9 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.342e-05/0.1681, allocations: 84.17 kB / 310.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1683, allocations: 120.7 kB / 310.9 MB, free: 8.883 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.537e-05/0.1683, allocations: 361.1 kB / 311.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.1685, allocations: 146 kB / 311.4 MB, free: 8.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.1687, allocations: 324.4 kB / 311.7 MB, free: 8.207 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.1691, allocations: 427.6 kB / 312.1 MB, free: 7.906 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.1691, allocations: 2 kB / 312.1 MB, free: 7.906 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0005395/0.1697, allocations: 0.5122 MB / 312.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.1697, allocations: 35.83 kB / 312.7 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1697, allocations: 6.469 kB / 312.7 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.1697, allocations: 6.625 kB / 312.7 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.047e-05/0.1698, allocations: 44.89 kB / 312.7 MB, free: 7.625 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.1698, allocations: 7.844 kB / 312.7 MB, free: 7.625 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.17, allocations: 56.22 kB / 312.8 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.17, allocations: 24.06 kB / 312.8 MB, free: 7.59 MB / 282.7 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.0001908/0.1702, allocations: 247 kB / 313.1 MB, free: 7.395 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.868e-05/0.1703, allocations: 49.36 kB / 313.1 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005644/0.1708, allocations: 458.5 kB / 313.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.1708, allocations: 4.844 kB / 313.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1708, allocations: 0 / 313.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.1708, allocations: 3.266 kB / 313.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008323/0.1717, allocations: 0.7146 MB / 314.3 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1717, allocations: 0 / 314.3 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.1717, allocations: 21.94 kB / 314.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1717, allocations: 2.75 kB / 314.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.1717, allocations: 11.94 kB / 314.3 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1718, allocations: 2.219 kB / 314.3 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1718, allocations: 5.375 kB / 314.3 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004725/0.1722, allocations: 0.5511 MB / 314.9 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.201e-05/0.1723, allocations: 50.03 kB / 314.9 MB, free: 6.328 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.2e-05/0.1723, allocations: 12.61 kB / 314.9 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.1724, allocations: 20.3 kB / 315 MB, free: 6.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.1725, allocations: 44.27 kB / 315 MB, free: 6.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.1725, allocations: 19.91 kB / 315 MB, free: 6.305 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002689/0.1728, allocations: 328.6 kB / 315.3 MB, free: 6.148 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1728, allocations: 0 / 315.3 MB, free: 6.148 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.1732, allocations: 122.5 kB / 315.5 MB, free: 6.113 MB / 282.7 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,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.001542/0.1748, allocations: 1.46 MB / 316.9 MB, free: 4.977 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005926/0.1754, allocations: 447.3 kB / 317.4 MB, free: 4.742 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1754, allocations: 0 / 317.4 MB, free: 4.742 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.1756, allocations: 247.5 kB / 317.6 MB, free: 4.594 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.176, allocations: 96.53 kB / 317.7 MB, free: 4.551 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004228/0.1802, allocations: 4.189 MB / 321.9 MB, free: 1.926 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.1805, allocations: 238.7 kB / 322.1 MB, free: 1.832 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002311/0.1807, allocations: 73.5 kB / 322.2 MB, free: 1.82 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.1809, allocations: 166.6 kB / 322.3 MB, free: 1.703 MB / 282.7 MB Notification: Performance of SimCode: time 1.253e-06/0.1809, allocations: 0 / 322.3 MB, free: 1.703 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03163/0.2125, allocations: 11.22 MB / 333.6 MB, free: 10.26 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.309/7.522, allocations: 8.062 kB / 333.6 MB, free: 10.25 MB / 298.7 MB " [Timeout remaining time 652] (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 --stepSize=0.00197981 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 9.197140082716942]