Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.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.000978/0.000978, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001035/0.001035, allocations: 169.2 kB / 24.82 MB, free: 8.918 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.9582/0.9582, allocations: 177.2 MB / 205.3 MB, free: 5.484 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: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.707e-05/1.846e-05, allocations: 10.25 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002213/0.002231, allocations: 2.034 MB / 275.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.003625, allocations: 1.239 MB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.003726, allocations: 7.938 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006336/0.00436, allocations: 315 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004349/0.004795, allocations: 266.9 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004368/0.005232, allocations: 227.3 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003173/0.005549, allocations: 367 kB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.005653, allocations: 40.91 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.005833, allocations: 199.4 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.00597, allocations: 143.6 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.005998, allocations: 20 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.006131, allocations: 79.88 kB / 278.3 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.257e-05/0.006223, allocations: 95.67 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.006285, allocations: 75.7 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.006546, allocations: 266.9 kB / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.006547, allocations: 0 / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.006548, allocations: 0 / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.006551, allocations: 0 / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007039/0.007255, allocations: 0.7048 MB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.0073, allocations: 16.02 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.417e-05/0.007365, allocations: 44.7 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.007632, allocations: 275.6 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.007653, allocations: 12.38 kB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.00767, allocations: 12.38 kB / 279.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.007813, allocations: 87 kB / 279.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.007821, allocations: 3.938 kB / 279.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.007832, allocations: 7.984 kB / 279.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.00784, allocations: 7.984 kB / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.402e-05/0.007894, allocations: 42.2 kB / 279.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003881/0.008282, allocations: 399.9 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001221/0.008404, allocations: 87.25 kB / 280.4 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.311e-05/0.008437, allocations: 27.67 kB / 280.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.008451, allocations: 0 / 280.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001087/0.008559, allocations: 104.9 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.162e-06/0.008561, allocations: 4 kB / 280.5 MB, free: 9.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002491/0.00881, allocations: 165.4 kB / 280.7 MB, free: 9.828 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.00884, allocations: 51.41 kB / 280.7 MB, free: 9.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003241/0.009164, allocations: 394.5 kB / 281.1 MB, free: 9.363 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.009184, allocations: 33.7 kB / 281.2 MB, free: 9.324 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.009287, allocations: 226.7 kB / 281.4 MB, free: 9.098 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.158e-05/0.009319, allocations: 43.61 kB / 281.4 MB, free: 9.055 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.941e-05/0.009368, allocations: 47.34 kB / 281.5 MB, free: 9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.00951, allocations: 0.5311 MB / 282 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.808e-05/0.009538, allocations: 15.98 kB / 282 MB, free: 8.441 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.378e-05/0.009612, allocations: 128.7 kB / 282.1 MB, free: 8.285 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.839e-05/0.00968, allocations: 70.59 kB / 282.2 MB, free: 8.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.009682, allocations: 0 / 282.2 MB, free: 8.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001354/0.009817, allocations: 145.2 kB / 282.4 MB, free: 8.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.009827, allocations: 4 kB / 282.4 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.009832, allocations: 0 / 282.4 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.009846, allocations: 4 kB / 282.4 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.984e-05/0.009916, allocations: 19.98 kB / 282.4 MB, free: 8.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.009922, allocations: 12.05 kB / 282.4 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.453e-05/0.009976, allocations: 19.83 kB / 282.4 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.974e-06/0.009984, allocations: 7.984 kB / 282.4 MB, free: 7.992 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 8.704e-05/0.01007, allocations: 174.5 kB / 282.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.267e-05/0.0101, allocations: 35.81 kB / 282.6 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001696/0.01027, allocations: 154.3 kB / 282.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.01028, allocations: 0 / 282.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.01028, allocations: 0 / 282.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.01028, allocations: 3.984 kB / 282.8 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.01043, allocations: 193 kB / 283 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01043, allocations: 7.938 kB / 283 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.659e-05/0.01046, allocations: 11.98 kB / 283 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.01046, allocations: 4 kB / 283 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.01047, allocations: 4 kB / 283 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.01047, allocations: 0 / 283 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.01047, allocations: 4 kB / 283 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.01062, allocations: 188.1 kB / 283.2 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.864e-05/0.01065, allocations: 31.73 kB / 283.2 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.01067, allocations: 11.94 kB / 283.2 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.797e-05/0.01071, allocations: 11.98 kB / 283.2 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.01075, allocations: 11.98 kB / 283.3 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.01076, allocations: 7.984 kB / 283.3 MB, free: 7.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001412/0.0109, allocations: 267 kB / 283.5 MB, free: 6.836 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.0109, allocations: 0 / 283.5 MB, free: 6.836 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001813/0.01108, allocations: 51.88 kB / 283.6 MB, free: 6.785 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0007561/0.01184, allocations: 406.4 kB / 284 MB, free: 6.523 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000129/0.01197, allocations: 75.48 kB / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.92e-07/0.01197, allocations: 0 / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.628e-05/0.01202, allocations: 54.72 kB / 284.1 MB, free: 6.391 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.01227, allocations: 88.03 kB / 284.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004852/0.01276, allocations: 452.2 kB / 284.6 MB, free: 5.836 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.928e-05/0.01282, allocations: 96.3 kB / 284.7 MB, free: 5.723 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.186e-05/0.01289, allocations: 38.27 kB / 284.8 MB, free: 5.688 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.01301, allocations: 130.2 kB / 284.9 MB, free: 5.559 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01301, allocations: 4 kB / 284.9 MB, free: 5.555 MB / 266.7 MB Notification: Performance of Templates: time 0.005917/0.01893, allocations: 4.45 MB / 289.3 MB, free: 1.172 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8247668431140482]