Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001675/0.001675, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001987/0.001987, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 48.02 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1064, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004156/0.1106, allocations: 2.491 MB / 428.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002664/0.1133, allocations: 1.484 MB / 430.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001782/0.1134, allocations: 15.88 kB / 430.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007729/0.1142, allocations: 242.8 kB / 430.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004679/0.1147, allocations: 205.9 kB / 430.7 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.1153, allocations: 271.3 kB / 431 MB, free: 100 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2231/0.3384, allocations: 476.1 kB / 431.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003372/0.3388, allocations: 153.4 kB / 431.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.339, allocations: 205 kB / 431.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.3393, allocations: 223.4 kB / 432 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.999e-05/0.3393, allocations: 35.94 kB / 432.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002979/0.3396, allocations: 126.1 kB / 432.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.3397, allocations: 126.9 kB / 432.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.3399, allocations: 221.6 kB / 432.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006426/0.3406, allocations: 0.5725 MB / 433.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3406, allocations: 0 / 433.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3406, allocations: 0.7188 kB / 433.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.3406, allocations: 0 / 433.1 MB, free: 7.438 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.001228/0.3418, allocations: 0.8704 MB / 434 MB, free: 6.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3418, allocations: 9.812 kB / 434 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.592e-05/0.3419, allocations: 76.27 kB / 434.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002863/0.3422, allocations: 70.62 kB / 434.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.3427, allocations: 404.6 kB / 434.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.852e-05/0.3427, allocations: 60.86 kB / 434.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/0.3428, allocations: 43.45 kB / 434.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006259/0.3434, allocations: 428.5 kB / 435.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3434, allocations: 1.469 kB / 435.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.3435, allocations: 13.44 kB / 435.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.819e-05/0.3435, allocations: 17.55 kB / 435.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/0.3439, allocations: 266.1 kB / 435.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.3456, allocations: 1.675 MB / 437 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005472/0.3462, allocations: 268.9 kB / 437.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.3464, allocations: 109.4 kB / 437.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.796e-05/0.3464, allocations: 17.08 kB / 437.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.3469, allocations: 321.1 kB / 437.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.3469, allocations: 0 / 437.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009374/0.3478, allocations: 475.6 kB / 438.2 MB, free: 4.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.3479, allocations: 162.9 kB / 438.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005357/0.3484, allocations: 499.1 kB / 438.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.3484, allocations: 46.98 kB / 438.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.3486, allocations: 235.9 kB / 439.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.3486, allocations: 90.75 kB / 439.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.3488, allocations: 121.1 kB / 439.3 MB, free: 4.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.047e-05/0.3489, allocations: 362.1 kB / 439.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.3491, allocations: 114.9 kB / 439.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002931/0.3494, allocations: 267.3 kB / 440 MB, free: 3.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004499/0.3498, allocations: 396.7 kB / 440.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3499, allocations: 7.156 kB / 440.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007304/0.3506, allocations: 467.2 kB / 440.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.3506, allocations: 35.88 kB / 440.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3506, allocations: 6.547 kB / 440.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.3507, allocations: 7.188 kB / 440.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.3508, allocations: 43.52 kB / 441 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.3508, allocations: 10.94 kB / 441 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.3511, allocations: 53.28 kB / 441 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.3511, allocations: 20.5 kB / 441.1 MB, free: 3.168 MB / 350.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.0002293/0.3513, allocations: 254.5 kB / 441.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/0.3514, allocations: 50.67 kB / 441.4 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004251/0.3518, allocations: 231.9 kB / 441.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3518, allocations: 4.812 kB / 441.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.3518, allocations: 1.125 kB / 441.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3518, allocations: 6.844 kB / 441.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.3529, allocations: 0.7464 MB / 442.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.3529, allocations: 2.344 kB / 442.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.239e-05/0.3529, allocations: 18.16 kB / 442.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.3529, allocations: 3.781 kB / 442.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.609e-05/0.353, allocations: 10.94 kB / 442.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.353, allocations: 2.031 kB / 442.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.353, allocations: 1.812 kB / 442.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007212/0.3537, allocations: 0.4962 MB / 442.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.29e-05/0.3538, allocations: 120 kB / 443 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.208e-05/0.3538, allocations: 11.23 kB / 443 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.354, allocations: 22.53 kB / 443 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.3542, allocations: 48.55 kB / 443.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.019e-05/0.3542, allocations: 16.56 kB / 443.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003469/0.3545, allocations: 332.3 kB / 443.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3545, allocations: 0 / 443.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.355, allocations: 115.3 kB / 443.5 MB, free: 1.754 MB / 350.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.00232/0.3573, allocations: 1.385 MB / 444.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006757/0.358, allocations: 368.5 kB / 445.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.358, allocations: 1.062 kB / 445.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.3583, allocations: 196.3 kB / 445.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005514/0.3589, allocations: 93.62 kB / 445.6 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00559/0.3644, allocations: 4.027 MB / 449.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.365, allocations: 0.8399 MB / 450.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002505/0.3653, allocations: 69.67 kB / 450.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.3656, allocations: 163.1 kB / 450.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3656, allocations: 3.938 kB / 450.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03711/0.4027, allocations: 9.911 MB / 460.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.435/8.838, allocations: 12.97 kB / 460.6 MB, free: 9.977 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197981 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.437142129987478]