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.001118/0.001118, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001337/0.001337, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8892/0.8892, allocations: 173.4 MB / 200.5 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 2.405e-06/2.405e-06, allocations: 0 / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.023e-05/3.263e-05, allocations: 2.281 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004816/0.004849, allocations: 2.351 MB / 320.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.006986, allocations: 1.289 MB / 322.1 MB, free: 2.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.007176, allocations: 15.88 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007003/0.007876, allocations: 254.7 kB / 322.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003199/0.008196, allocations: 171.1 kB / 322.5 MB, free: 2.246 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.008725, allocations: 301.9 kB / 322.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004072/0.009132, allocations: 483.5 kB / 323.3 MB, free: 1.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.009349, allocations: 146.3 kB / 323.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002313/0.00958, allocations: 271.3 kB / 323.7 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.009746, allocations: 171.5 kB / 323.8 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.009786, allocations: 36 kB / 323.9 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.009974, allocations: 127.8 kB / 324 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.01008, allocations: 135.5 kB / 324.1 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.01018, allocations: 139.6 kB / 324.3 MB, free: 476 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004919/0.01068, allocations: 0.576 MB / 324.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.01068, allocations: 0 / 324.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.01068, allocations: 0 / 324.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.01069, allocations: 0 / 324.9 MB, free: 15.89 MB / 298.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.00103/0.01172, allocations: 0.7748 MB / 325.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.01175, allocations: 8.922 kB / 325.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.334e-05/0.01182, allocations: 78.7 kB / 325.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.099e-05/0.0119, allocations: 64.56 kB / 325.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003709/0.01227, allocations: 331.6 kB / 326.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.528e-05/0.01233, allocations: 84.53 kB / 326.2 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.44e-05/0.01237, allocations: 39.98 kB / 326.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.01283, allocations: 453.7 kB / 326.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.01284, allocations: 0 / 326.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.01287, allocations: 20 kB / 326.7 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.01289, allocations: 16.48 kB / 326.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003265/0.01321, allocations: 291.4 kB / 327 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.01444, allocations: 1.558 MB / 328.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.01485, allocations: 301.6 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.01499, allocations: 152.2 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.01504, allocations: 11.98 kB / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.01534, allocations: 359.1 kB / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.362e-06/0.01534, allocations: 0 / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006609/0.01601, allocations: 0.5444 MB / 329.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.01607, allocations: 140.5 kB / 330 MB, free: 10.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.01643, allocations: 497.3 kB / 330.5 MB, free: 9.848 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.01649, allocations: 45.69 kB / 330.6 MB, free: 9.797 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.01661, allocations: 233 kB / 330.8 MB, free: 9.566 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.42e-05/0.01667, allocations: 87.36 kB / 330.9 MB, free: 9.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.01677, allocations: 122.1 kB / 331 MB, free: 9.355 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.687e-05/0.01687, allocations: 358.7 kB / 331.3 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.01709, allocations: 146.6 kB / 331.5 MB, free: 8.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.01731, allocations: 320.6 kB / 331.8 MB, free: 8.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.01767, allocations: 431.1 kB / 332.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.01767, allocations: 256 / 332.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004888/0.01816, allocations: 0.5043 MB / 332.7 MB, free: 7.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.01819, allocations: 41.69 kB / 332.8 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.0182, allocations: 8 kB / 332.8 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.01821, allocations: 4 kB / 332.8 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.685e-05/0.01829, allocations: 39.86 kB / 332.8 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.0183, allocations: 7.984 kB / 332.8 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.01843, allocations: 55.66 kB / 332.9 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.01846, allocations: 28.16 kB / 332.9 MB, free: 7.266 MB / 298.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.000301/0.01876, allocations: 248.6 kB / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/0.01881, allocations: 43.72 kB / 333.2 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004786/0.01928, allocations: 454.3 kB / 333.6 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.01929, allocations: 4 kB / 333.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.0193, allocations: 4.062 kB / 333.6 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.01931, allocations: 11.98 kB / 333.7 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009953/0.0203, allocations: 0.711 MB / 334.4 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.02031, allocations: 4 kB / 334.4 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.623e-05/0.02036, allocations: 15.92 kB / 334.4 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.02037, allocations: 4 kB / 334.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.02039, allocations: 11.94 kB / 334.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.0204, allocations: 4.156 kB / 334.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.0204, allocations: 0 / 334.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000742/0.02114, allocations: 0.5505 MB / 335 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.309e-05/0.0212, allocations: 51.64 kB / 335 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.18e-05/0.02127, allocations: 15.94 kB / 335 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.02145, allocations: 23.97 kB / 335 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.0216, allocations: 39.94 kB / 335.1 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.02164, allocations: 16 kB / 335.1 MB, free: 4.957 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003504/0.02199, allocations: 327.1 kB / 335.4 MB, free: 4.641 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02199, allocations: 0 / 335.4 MB, free: 4.641 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001556/0.02355, allocations: 115.7 kB / 335.5 MB, free: 4.527 MB / 298.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.001444/0.02499, allocations: 1.483 MB / 337 MB, free: 3.188 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004739/0.02546, allocations: 431.2 kB / 337.4 MB, free: 2.742 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.02547, allocations: 0 / 337.4 MB, free: 2.742 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002228/0.02569, allocations: 241 kB / 337.7 MB, free: 2.488 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.02605, allocations: 93.75 kB / 337.8 MB, free: 2.395 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/0.02961, allocations: 4.199 MB / 342 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.02978, allocations: 245 kB / 342.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000148/0.02992, allocations: 75.27 kB / 342.3 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.03009, allocations: 164.4 kB / 342.4 MB, free: 13.46 MB / 314.7 MB Notification: Performance of SimCode: time 3.11e-07/0.03009, allocations: 0 / 342.4 MB, free: 13.46 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02467/0.05476, allocations: 11.2 MB / 353.6 MB, free: 2.352 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.136/7.191, allocations: 8 kB / 353.6 MB, free: 2.344 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.950453880243003]