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.0008254/0.0008254, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 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.0008034/0.0008034, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.9158/0.9158, allocations: 177 MB / 204.1 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.503e-06/1.503e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.508e-05/1.658e-05, allocations: 3.266 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002757/0.002774, allocations: 2.407 MB / 326.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.004652, allocations: 1.429 MB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001808/0.004833, allocations: 15.88 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006121/0.005445, allocations: 242.8 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.005818, allocations: 210.9 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.006309, allocations: 274.5 kB / 329.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004133/0.006722, allocations: 487.6 kB / 329.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.006944, allocations: 142.3 kB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.007193, allocations: 275.3 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.007362, allocations: 171.5 kB / 330.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.007404, allocations: 36 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.007581, allocations: 119.8 kB / 330.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.007686, allocations: 135.5 kB / 330.4 MB, free: 9.926 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.00779, allocations: 131.6 kB / 330.5 MB, free: 9.797 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008013/0.008591, allocations: 0.576 MB / 331.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.008594, allocations: 0 / 331.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.008596, allocations: 0 / 331.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.008603, allocations: 0 / 331.1 MB, free: 9.219 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.001121/0.009723, allocations: 0.7947 MB / 331.9 MB, free: 8.379 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.009758, allocations: 15.98 kB / 331.9 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.838e-05/0.009816, allocations: 78.69 kB / 332 MB, free: 8.277 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.009972, allocations: 68.5 kB / 332.1 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.01033, allocations: 323.8 kB / 332.4 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.623e-05/0.0104, allocations: 88.95 kB / 332.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.01043, allocations: 40.38 kB / 332.5 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004483/0.01088, allocations: 454.2 kB / 333 MB, free: 7.242 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.01089, allocations: 4.188 kB / 333 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.471e-05/0.01092, allocations: 23.92 kB / 333 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.01093, allocations: 12.5 kB / 333 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003165/0.01125, allocations: 299.4 kB / 333.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.01243, allocations: 1.55 MB / 334.8 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004108/0.01284, allocations: 305.6 kB / 335.1 MB, free: 4.941 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.01298, allocations: 136.2 kB / 335.3 MB, free: 4.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.741e-05/0.01302, allocations: 15.92 kB / 335.3 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003011/0.01332, allocations: 366.3 kB / 335.7 MB, free: 4.375 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/0.01332, allocations: 0 / 335.7 MB, free: 4.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006026/0.01392, allocations: 0.5298 MB / 336.2 MB, free: 3.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.01398, allocations: 136.5 kB / 336.3 MB, free: 3.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.01434, allocations: 0.4974 MB / 336.8 MB, free: 3.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.01437, allocations: 37.7 kB / 336.8 MB, free: 3.109 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.01449, allocations: 241 kB / 337.1 MB, free: 2.871 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.01455, allocations: 87.36 kB / 337.2 MB, free: 2.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.593e-05/0.01464, allocations: 114.1 kB / 337.3 MB, free: 2.668 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.01475, allocations: 358.8 kB / 337.6 MB, free: 2.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.0149, allocations: 146.6 kB / 337.8 MB, free: 2.156 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.01512, allocations: 324.6 kB / 338.1 MB, free: 1.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.01543, allocations: 402.4 kB / 338.5 MB, free: 1.309 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.01543, allocations: 4 kB / 338.5 MB, free: 1.305 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004572/0.01589, allocations: 0.4964 MB / 339 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.01592, allocations: 37.69 kB / 339 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.01593, allocations: 4 kB / 339 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.01594, allocations: 8 kB / 339 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.315e-05/0.01602, allocations: 39.86 kB / 339.1 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.01603, allocations: 12.14 kB / 339.1 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.01615, allocations: 51.72 kB / 339.1 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.01617, allocations: 24.27 kB / 339.2 MB, free: 0.6055 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.0001724/0.01634, allocations: 256.5 kB / 339.4 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.073e-05/0.01639, allocations: 47.66 kB / 339.5 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004469/0.01683, allocations: 427.8 kB / 339.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.01684, allocations: 4 kB / 339.9 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.01684, allocations: 0 / 339.9 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.01685, allocations: 8.094 kB / 339.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006186/0.01746, allocations: 0.6887 MB / 340.6 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.01747, allocations: 0 / 340.6 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.386e-05/0.0175, allocations: 19.92 kB / 340.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.0175, allocations: 0 / 340.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.01752, allocations: 16 kB / 340.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.01752, allocations: 0 / 340.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.01753, allocations: 4 kB / 340.6 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.01795, allocations: 0.5199 MB / 341.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.01799, allocations: 59.64 kB / 341.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.01803, allocations: 8 kB / 341.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.833e-05/0.01813, allocations: 23.97 kB / 341.2 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.924e-05/0.01822, allocations: 43.94 kB / 341.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.01824, allocations: 15.98 kB / 341.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002296/0.01846, allocations: 335.1 kB / 341.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01847, allocations: 0 / 341.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002906/0.01876, allocations: 115.7 kB / 341.7 MB, free: 13.92 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.001362/0.02012, allocations: 1.422 MB / 343.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004429/0.02056, allocations: 435.2 kB / 343.6 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.02056, allocations: 3.938 kB / 343.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.02076, allocations: 238.2 kB / 343.8 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.02108, allocations: 89.52 kB / 343.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.02453, allocations: 4.203 MB / 348.1 MB, free: 7.375 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.02469, allocations: 238.9 kB / 348.3 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.02481, allocations: 75.59 kB / 348.4 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.02497, allocations: 156.4 kB / 348.6 MB, free: 6.891 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.02497, allocations: 7.938 kB / 348.6 MB, free: 6.883 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.04936, allocations: 10.98 MB / 359.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.214/7.263, allocations: 11.17 kB / 359.5 MB, free: 11.96 MB / 330.7 MB " [Timeout remaining time 653] (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/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_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: 9.052662333473563]