Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001661/0.001661, allocations: 118.7 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002084/0.002084, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 63.89 kB / 373.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1119, allocations: 53.33 MB / 426.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004609/0.1165, allocations: 2.485 MB / 429.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002924/0.1194, allocations: 1.492 MB / 430.7 MB, free: 1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003452/0.1197, allocations: 7.938 kB / 430.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009413/0.1207, allocations: 246.8 kB / 430.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006995/0.1214, allocations: 203 kB / 431.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000821/0.1222, allocations: 263.3 kB / 431.4 MB, free: 300 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2201/0.3424, allocations: 470.6 kB / 431.8 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004625/0.3428, allocations: 155.3 kB / 432 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004174/0.3432, allocations: 196.8 kB / 432.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003698/0.3436, allocations: 225.4 kB / 432.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.3437, allocations: 34.88 kB / 432.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003631/0.3441, allocations: 121.6 kB / 432.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001713/0.3443, allocations: 125.3 kB / 432.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.3446, allocations: 222.5 kB / 432.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009205/0.3455, allocations: 0.5679 MB / 433.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3455, allocations: 2.391 kB / 433.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3455, allocations: 2.094 kB / 433.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.366e-05/0.3455, allocations: 0 / 433.4 MB, free: 7.41 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.001639/0.3471, allocations: 0.8717 MB / 434.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3472, allocations: 10.5 kB / 434.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.028e-05/0.3473, allocations: 73.31 kB / 434.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.3476, allocations: 65.16 kB / 434.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006164/0.3482, allocations: 397 kB / 434.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-05/0.3483, allocations: 58.95 kB / 434.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.718e-05/0.3483, allocations: 46.36 kB / 435 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00076/0.3491, allocations: 432 kB / 435.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.3491, allocations: 2.234 kB / 435.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.3492, allocations: 15.72 kB / 435.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.254e-05/0.3492, allocations: 14.22 kB / 435.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000543/0.3497, allocations: 267.2 kB / 435.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.352, allocations: 1.679 MB / 437.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006115/0.3526, allocations: 267.7 kB / 437.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.3528, allocations: 109.4 kB / 437.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.171e-05/0.3529, allocations: 9.5 kB / 437.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005243/0.3534, allocations: 325 kB / 438 MB, free: 4.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 3.096e-06/0.3534, allocations: 0 / 438 MB, free: 4.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001072/0.3545, allocations: 481.1 kB / 438.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.3546, allocations: 166.9 kB / 438.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000677/0.3552, allocations: 0.4897 MB / 439.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.588e-05/0.3553, allocations: 40.11 kB / 439.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.3555, allocations: 237.4 kB / 439.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.534e-05/0.3556, allocations: 86.55 kB / 439.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.3557, allocations: 120.7 kB / 439.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3559, allocations: 358.4 kB / 440 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.3561, allocations: 114.5 kB / 440.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.3564, allocations: 271.6 kB / 440.4 MB, free: 3.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004836/0.3569, allocations: 401.2 kB / 440.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.3569, allocations: 1.406 kB / 440.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008083/0.3577, allocations: 476.4 kB / 441.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.378e-05/0.3578, allocations: 35.55 kB / 441.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3578, allocations: 4.547 kB / 441.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.3578, allocations: 6.906 kB / 441.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.358, allocations: 44.88 kB / 441.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/0.358, allocations: 7.359 kB / 441.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.3583, allocations: 53.23 kB / 441.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.442e-05/0.3583, allocations: 24.5 kB / 441.4 MB, free: 3.25 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.0002963/0.3586, allocations: 254.5 kB / 441.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.706e-05/0.3587, allocations: 52.02 kB / 441.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004573/0.3592, allocations: 233.6 kB / 441.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3592, allocations: 4.75 kB / 441.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3592, allocations: 1.312 kB / 441.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.3592, allocations: 4.922 kB / 441.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.3604, allocations: 0.7441 MB / 442.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3604, allocations: 1.781 kB / 442.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.783e-05/0.3604, allocations: 14.61 kB / 442.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.3605, allocations: 1.969 kB / 442.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.3605, allocations: 12.59 kB / 442.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.3605, allocations: 1.406 kB / 442.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3605, allocations: 1.469 kB / 442.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008194/0.3613, allocations: 0.4956 MB / 443.2 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.3614, allocations: 119.3 kB / 443.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.3615, allocations: 18.45 kB / 443.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.3617, allocations: 21.8 kB / 443.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.3618, allocations: 44.09 kB / 443.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.3619, allocations: 17.77 kB / 443.4 MB, free: 2.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004209/0.3623, allocations: 331 kB / 443.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3623, allocations: 0 / 443.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005903/0.3629, allocations: 119.9 kB / 443.9 MB, free: 1.828 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.002396/0.3653, allocations: 1.378 MB / 445.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008036/0.3661, allocations: 367 kB / 445.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3661, allocations: 0 / 445.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.3664, allocations: 201 kB / 445.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/0.3671, allocations: 100.3 kB / 445.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007131/0.3743, allocations: 4.019 MB / 449.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006567/0.3749, allocations: 0.8384 MB / 450.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003158/0.3752, allocations: 69.86 kB / 450.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.3755, allocations: 158.2 kB / 451 MB, free: 13.37 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3755, allocations: 5.312 kB / 451 MB, free: 13.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04595/0.4215, allocations: 9.903 MB / 460.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.698/9.119, allocations: 10.66 kB / 460.9 MB, free: 10.09 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197981 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.748648493085057]