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.0008286/0.0008286, allocations: 79.69 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.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.0008329/0.0008329, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8985/0.8985, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 1.713e-06/1.713e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.072e-05/1.243e-05, allocations: 6.219 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002642/0.002654, allocations: 2.406 MB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.004594, allocations: 1.437 MB / 328.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.004803, allocations: 11.94 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006289/0.005432, allocations: 246.8 kB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003872/0.005819, allocations: 202.9 kB / 328.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.00628, allocations: 286.7 kB / 329.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.006669, allocations: 479.6 kB / 329.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.006904, allocations: 146.3 kB / 329.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.007124, allocations: 271.3 kB / 330 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.007296, allocations: 183.4 kB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.007336, allocations: 36 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.007513, allocations: 119.8 kB / 330.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.007614, allocations: 131.5 kB / 330.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.877e-05/0.007712, allocations: 131.6 kB / 330.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000475/0.008187, allocations: 0.576 MB / 331.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.00819, allocations: 0 / 331.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.008191, allocations: 0 / 331.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.008197, allocations: 0 / 331.2 MB, free: 9.277 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.0009216/0.009119, allocations: 0.7986 MB / 332 MB, free: 8.434 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.009162, allocations: 8.031 kB / 332 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.639e-05/0.009218, allocations: 74.72 kB / 332.1 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.009412, allocations: 72.55 kB / 332.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003753/0.009787, allocations: 331.7 kB / 332.5 MB, free: 7.922 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.185e-05/0.009849, allocations: 84.95 kB / 332.5 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.009882, allocations: 40.38 kB / 332.6 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004502/0.01033, allocations: 453.8 kB / 333 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.01035, allocations: 7.938 kB / 333 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.01037, allocations: 16 kB / 333 MB, free: 7.281 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.01039, allocations: 12.5 kB / 333.1 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003241/0.01071, allocations: 295.4 kB / 333.3 MB, free: 6.973 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.01195, allocations: 1.558 MB / 334.9 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004386/0.01239, allocations: 297.7 kB / 335.2 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.01254, allocations: 140.2 kB / 335.3 MB, free: 4.859 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.422e-05/0.01258, allocations: 15.92 kB / 335.3 MB, free: 4.844 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003502/0.01293, allocations: 374.6 kB / 335.7 MB, free: 4.434 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.704e-06/0.01293, allocations: 0 / 335.7 MB, free: 4.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006797/0.01361, allocations: 0.5323 MB / 336.2 MB, free: 3.879 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.01367, allocations: 140.5 kB / 336.4 MB, free: 3.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.01402, allocations: 0.4974 MB / 336.9 MB, free: 3.207 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.01405, allocations: 37.7 kB / 336.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.01418, allocations: 240.9 kB / 337.2 MB, free: 2.926 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.743e-05/0.01423, allocations: 87.36 kB / 337.2 MB, free: 2.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.941e-05/0.01433, allocations: 114.2 kB / 337.4 MB, free: 2.723 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.525e-05/0.01443, allocations: 358.8 kB / 337.7 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.01458, allocations: 142.6 kB / 337.8 MB, free: 2.215 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.01504, allocations: 320.6 kB / 338.2 MB, free: 1.832 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/0.01536, allocations: 407.3 kB / 338.6 MB, free: 1.367 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.01536, allocations: 4 kB / 338.6 MB, free: 1.363 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004462/0.01581, allocations: 0.4923 MB / 339 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.01584, allocations: 37.69 kB / 339.1 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01585, allocations: 4 kB / 339.1 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.01586, allocations: 8.469 kB / 339.1 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.544e-05/0.01594, allocations: 47.86 kB / 339.1 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.01595, allocations: 11.92 kB / 339.2 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.01607, allocations: 51.72 kB / 339.2 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.0161, allocations: 20 kB / 339.2 MB, free: 0.6641 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.0001692/0.01627, allocations: 248.6 kB / 339.5 MB, free: 412 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.01631, allocations: 51.72 kB / 339.5 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004288/0.01674, allocations: 424.3 kB / 339.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.01674, allocations: 7.984 kB / 339.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.01674, allocations: 0 / 339.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.01675, allocations: 0 / 339.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006104/0.01736, allocations: 0.6849 MB / 340.6 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01736, allocations: 0 / 340.6 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.334e-05/0.0174, allocations: 15.92 kB / 340.6 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.0174, allocations: 4 kB / 340.6 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.01741, allocations: 12 kB / 340.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.01742, allocations: 4 kB / 340.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01742, allocations: 64 / 340.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004147/0.01783, allocations: 0.5353 MB / 341.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.079e-05/0.01787, allocations: 51.64 kB / 341.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.01791, allocations: 12 kB / 341.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.01802, allocations: 23.97 kB / 341.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.0181, allocations: 39.94 kB / 341.3 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.01812, allocations: 20.08 kB / 341.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002221/0.01835, allocations: 335.1 kB / 341.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01835, allocations: 0 / 341.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002815/0.01863, allocations: 119.7 kB / 341.8 MB, free: 13.98 MB / 314.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: 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.0013/0.01993, allocations: 1.431 MB / 343.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004457/0.02037, allocations: 442.3 kB / 343.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.02038, allocations: 0 / 343.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001916/0.02057, allocations: 228.9 kB / 343.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.02091, allocations: 94.38 kB / 344 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.02452, allocations: 4.207 MB / 348.2 MB, free: 7.453 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.02467, allocations: 234.9 kB / 348.4 MB, free: 7.203 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001254/0.0248, allocations: 79.64 kB / 348.5 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.02496, allocations: 160.4 kB / 348.6 MB, free: 6.965 MB / 314.7 MB Notification: Performance of SimCode: time 3.8e-07/0.02496, allocations: 0 / 348.6 MB, free: 6.965 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.04617, allocations: 10.99 MB / 359.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.04/7.086, allocations: 8 kB / 359.6 MB, free: 12.07 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/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: 8.824916755780578]