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.001919/0.001919, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001554/0.001554, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.421/1.421, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.002235/0.002235, allocations: 55.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2808, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004012/0.2848, allocations: 2.404 MB / 433.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002585/0.2874, allocations: 1.414 MB / 434.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.2875, allocations: 11.94 kB / 434.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007562/0.2883, allocations: 250.9 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004945/0.2888, allocations: 211 kB / 435.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006209/0.2894, allocations: 270.4 kB / 435.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000537/0.2899, allocations: 487.6 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002762/0.2902, allocations: 138.1 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.2905, allocations: 199.2 kB / 436.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002625/0.2907, allocations: 207 kB / 436.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.2908, allocations: 36 kB / 436.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002462/0.291, allocations: 123.9 kB / 436.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.2912, allocations: 131.5 kB / 436.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.2913, allocations: 171 kB / 437.1 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007111/0.292, allocations: 0.5735 MB / 437.7 MB, free: 28 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2921, allocations: 0 / 437.7 MB, free: 28 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2921, allocations: 0 / 437.7 MB, free: 28 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.2921, allocations: 0 / 437.7 MB, free: 28 kB / 334.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.001421/0.2935, allocations: 0.8027 MB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.2935, allocations: 12.03 kB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.675e-05/0.2936, allocations: 74.72 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002834/0.2939, allocations: 68.55 kB / 438.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.2945, allocations: 324.5 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.2946, allocations: 92.7 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.37e-05/0.2946, allocations: 36 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007101/0.2953, allocations: 457.5 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2954, allocations: 0 / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.2954, allocations: 19.98 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.2954, allocations: 12.44 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/0.296, allocations: 299.1 kB / 439.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.298, allocations: 1.566 MB / 441.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.2987, allocations: 305.5 kB / 441.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.2989, allocations: 140.2 kB / 441.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.299, allocations: 7.938 kB / 441.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005522/0.2995, allocations: 363.8 kB / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.324e-06/0.2995, allocations: 0 / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001067/0.3006, allocations: 0.5337 MB / 442.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.272e-05/0.3007, allocations: 136.5 kB / 442.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005681/0.3013, allocations: 0.4935 MB / 443.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.3013, allocations: 37.7 kB / 443.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.3015, allocations: 240.9 kB / 443.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.696e-05/0.3016, allocations: 91.31 kB / 443.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.3017, allocations: 114.2 kB / 443.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3019, allocations: 366.7 kB / 444.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.3022, allocations: 146.6 kB / 444.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.3026, allocations: 316.6 kB / 444.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005624/0.3032, allocations: 402.5 kB / 445 MB, free: 8.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.3032, allocations: 4 kB / 445 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007957/0.304, allocations: 0.4885 MB / 445.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.179e-05/0.304, allocations: 37.69 kB / 445.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.304, allocations: 4 kB / 445.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.304, allocations: 8 kB / 445.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.3042, allocations: 35.92 kB / 445.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.935e-05/0.3042, allocations: 16.39 kB / 445.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.3044, allocations: 55.72 kB / 445.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.053e-05/0.3045, allocations: 20.31 kB / 445.7 MB, free: 7.414 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.0002887/0.3048, allocations: 256.7 kB / 446 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.029e-05/0.3048, allocations: 43.72 kB / 446 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007551/0.3056, allocations: 420.5 kB / 446.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3056, allocations: 8 kB / 446.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3056, allocations: 0 / 446.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3056, allocations: 4 kB / 446.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.3067, allocations: 0.6834 MB / 447.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3067, allocations: 0 / 447.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.833e-05/0.3067, allocations: 15.94 kB / 447.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3067, allocations: 0 / 447.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.3068, allocations: 16.08 kB / 447.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3068, allocations: 3.938 kB / 447.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3068, allocations: 4 kB / 447.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007623/0.3075, allocations: 0.5238 MB / 447.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.83e-05/0.3076, allocations: 55.64 kB / 447.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.461e-05/0.3077, allocations: 8 kB / 447.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.3079, allocations: 19.98 kB / 447.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.308, allocations: 59.73 kB / 447.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.308, allocations: 12 kB / 447.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003981/0.3084, allocations: 335.1 kB / 448.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3084, allocations: 0 / 448.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004656/0.3089, allocations: 115.8 kB / 448.3 MB, free: 4.746 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,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 (35): * Single equations (assignments): 29 * 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.002725/0.3116, allocations: 1.441 MB / 449.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007119/0.3123, allocations: 442.8 kB / 450.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3124, allocations: 0 / 450.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000351/0.3127, allocations: 229.8 kB / 450.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000527/0.3132, allocations: 85.38 kB / 450.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/0.3187, allocations: 4.188 MB / 454.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.3189, allocations: 238.6 kB / 454.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002095/0.3192, allocations: 75.25 kB / 454.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002408/0.3194, allocations: 159.4 kB / 455.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3194, allocations: 4 kB / 455.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04252/0.3619, allocations: 10.86 MB / 466 MB, free: 2.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.52, allocations: 10.31 kB / 466 MB, free: 2.988 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.106147658079863]