Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.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.006829/0.006829, allocations: 109.7 kB / 21.98 MB, free: 5.184 MB / 14.72 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.001771/0.001771, allocations: 220.3 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 259 MB, free: 8.004 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-beta.om/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: 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-beta.om_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-beta.om_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 63.89 kB / 379.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2406, allocations: 53.36 MB / 433.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003555/0.2442, allocations: 2.06 MB / 435.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002427/0.2466, allocations: 1.302 MB / 436.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.2467, allocations: 7.938 kB / 436.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000908/0.2476, allocations: 318.8 kB / 436.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006343/0.2483, allocations: 263.1 kB / 437.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005879/0.2489, allocations: 227.5 kB / 437.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004515/0.2493, allocations: 355.1 kB / 437.7 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.2495, allocations: 44.92 kB / 437.7 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.2497, allocations: 155.4 kB / 437.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.2499, allocations: 155.4 kB / 438 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.2499, allocations: 23.94 kB / 438 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.2501, allocations: 95.86 kB / 438.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.2502, allocations: 87.73 kB / 438.2 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.2504, allocations: 127.2 kB / 438.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004696/0.2509, allocations: 372.6 kB / 438.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2509, allocations: 0 / 438.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2509, allocations: 0 / 438.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.2509, allocations: 4 kB / 438.7 MB, free: 1.375 MB / 334.1 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.001025/0.2519, allocations: 0.605 MB / 439.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2519, allocations: 12.02 kB / 439.3 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.582e-05/0.252, allocations: 40.7 kB / 439.4 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.2525, allocations: 272.8 kB / 439.6 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.2525, allocations: 12.38 kB / 439.6 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.2525, allocations: 12.12 kB / 439.6 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003205/0.2528, allocations: 148 kB / 439.8 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-06/0.2528, allocations: 0 / 439.8 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.2529, allocations: 8 kB / 439.8 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2529, allocations: 3.984 kB / 439.8 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.253, allocations: 71.89 kB / 439.9 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007432/0.2538, allocations: 471.5 kB / 440.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.2541, allocations: 125.1 kB / 440.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.2543, allocations: 44.84 kB / 440.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.2543, allocations: 0 / 440.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.2545, allocations: 128.5 kB / 440.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.2545, allocations: 0 / 440.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005245/0.2551, allocations: 220.4 kB / 440.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.2551, allocations: 106.8 kB / 440.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005466/0.2557, allocations: 453.6 kB / 441.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.2557, allocations: 33.7 kB / 441.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.2559, allocations: 176 kB / 441.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.483e-05/0.2559, allocations: 47.62 kB / 441.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.796e-05/0.256, allocations: 45.64 kB / 441.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.2561, allocations: 342.8 kB / 442 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.2562, allocations: 43.97 kB / 442.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.2564, allocations: 100.9 kB / 442.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.2567, allocations: 110.5 kB / 442.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2567, allocations: 0 / 442.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003655/0.257, allocations: 181.3 kB / 442.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.2571, allocations: 7.938 kB / 442.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2571, allocations: 4 kB / 442.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.2571, allocations: 4.062 kB / 442.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.2572, allocations: 23.98 kB / 442.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2572, allocations: 3.938 kB / 442.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.2573, allocations: 15.95 kB / 442.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.2573, allocations: 4 kB / 442.5 MB, free: 13.32 MB / 350.1 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 0.0001831/0.2575, allocations: 183.4 kB / 442.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.2575, allocations: 31.75 kB / 442.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003959/0.2579, allocations: 191.5 kB / 442.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2579, allocations: 0 / 442.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2579, allocations: 0 / 442.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2579, allocations: 3.938 kB / 442.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000288/0.2582, allocations: 284.5 kB / 443.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2582, allocations: 0 / 443.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-05/0.2583, allocations: 11.98 kB / 443.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.2583, allocations: 3.938 kB / 443.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.2583, allocations: 0 / 443.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2583, allocations: 4 kB / 443.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2583, allocations: 4 kB / 443.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003526/0.2586, allocations: 196.9 kB / 443.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.2587, allocations: 35.7 kB / 443.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.61e-05/0.2588, allocations: 15.92 kB / 443.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.104e-05/0.2588, allocations: 7.938 kB / 443.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/0.2589, allocations: 15.97 kB / 443.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.2589, allocations: 4 kB / 443.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003901/0.2593, allocations: 335.1 kB / 443.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2593, allocations: 0 / 443.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003155/0.2596, allocations: 59.92 kB / 443.9 MB, free: 11.89 MB / 350.1 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 (15): * Single equations (assignments): 11 * 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.001565/0.2612, allocations: 427.6 kB / 444.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003304/0.2615, allocations: 119.4 kB / 444.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2615, allocations: 128 / 444.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.2616, allocations: 51.92 kB / 444.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.2621, allocations: 91.06 kB / 444.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009361/0.263, allocations: 0.5367 MB / 445.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.2635, allocations: 0.7792 MB / 445.9 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.869e-05/0.2635, allocations: 31.42 kB / 445.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2635, allocations: 0 / 445.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of Templates: time 0.007665/0.2712, allocations: 4.309 MB / 450.2 MB, free: 5.672 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.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: 7.764959602151066]