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.001382/0.001382, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.007769/0.007769, allocations: 164.5 kB / 24.99 MB, free: 8.793 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 1.126/1.126, allocations: 177.1 MB / 205.3 MB, free: 5.648 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.723e-06/1.723e-06, allocations: 0 / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.409e-05/2.581e-05, allocations: 6.312 kB / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002634/0.00266, allocations: 2.046 MB / 275.1 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.004367, allocations: 1.263 MB / 276.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.004506, allocations: 4 kB / 276.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007494/0.005256, allocations: 307 kB / 276.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004845/0.00574, allocations: 266.9 kB / 276.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004861/0.006226, allocations: 231.3 kB / 277.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.006657, allocations: 363 kB / 277.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.006794, allocations: 40.92 kB / 277.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.007026, allocations: 187.5 kB / 277.7 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.007194, allocations: 143.6 kB / 277.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.402e-05/0.007228, allocations: 20 kB / 277.9 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001724/0.007401, allocations: 103.8 kB / 278 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.632e-05/0.007497, allocations: 87.69 kB / 278.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.964e-05/0.007577, allocations: 67.78 kB / 278.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.00795, allocations: 267 kB / 278.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.007953, allocations: 0 / 278.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.007954, allocations: 0 / 278.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.007959, allocations: 0 / 278.4 MB, free: 12.49 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.0008004/0.00876, allocations: 0.7087 MB / 279.1 MB, free: 11.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.008798, allocations: 8.031 kB / 279.1 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.575e-05/0.008894, allocations: 44.7 kB / 279.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.00927, allocations: 291.5 kB / 279.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.0093, allocations: 12.38 kB / 279.4 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.084e-05/0.009321, allocations: 12.38 kB / 279.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.009509, allocations: 92.62 kB / 279.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.009519, allocations: 3.938 kB / 279.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.009532, allocations: 4 kB / 279.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.009541, allocations: 4 kB / 279.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.509e-05/0.009616, allocations: 43.77 kB / 279.6 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.01016, allocations: 463.3 kB / 280.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004397/0.0106, allocations: 99.19 kB / 280.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.174e-05/0.01066, allocations: 35.67 kB / 280.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.01068, allocations: 4 kB / 280.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.01082, allocations: 103.9 kB / 280.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.084e-06/0.01082, allocations: 0 / 280.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003021/0.01112, allocations: 169.3 kB / 280.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.01116, allocations: 59.39 kB / 280.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/0.01146, allocations: 414.7 kB / 280.9 MB, free: 9.777 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.01148, allocations: 33.7 kB / 281 MB, free: 9.738 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.01161, allocations: 222.8 kB / 281.2 MB, free: 9.516 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.01166, allocations: 39.7 kB / 281.2 MB, free: 9.477 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-05/0.01171, allocations: 51.34 kB / 281.3 MB, free: 9.418 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.01185, allocations: 0.5157 MB / 281.8 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.59e-05/0.0119, allocations: 19.98 kB / 281.8 MB, free: 8.871 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.565e-05/0.01199, allocations: 129.8 kB / 281.9 MB, free: 8.711 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.792e-05/0.01209, allocations: 86.25 kB / 282 MB, free: 8.617 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01209, allocations: 0 / 282 MB, free: 8.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001971/0.01229, allocations: 153.3 kB / 282.2 MB, free: 8.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.0123, allocations: 4 kB / 282.2 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.01231, allocations: 4 kB / 282.2 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.01233, allocations: 0 / 282.2 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.502e-05/0.01242, allocations: 23.92 kB / 282.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.01243, allocations: 11.92 kB / 282.2 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.127e-05/0.0125, allocations: 19.89 kB / 282.2 MB, free: 8.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.01252, allocations: 12.05 kB / 282.2 MB, free: 8.387 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 0.0001254/0.01264, allocations: 174.5 kB / 282.4 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.808e-05/0.01268, allocations: 31.81 kB / 282.4 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.01292, allocations: 163.1 kB / 282.6 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.01293, allocations: 4 kB / 282.6 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.01293, allocations: 0 / 282.6 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.01294, allocations: 7.922 kB / 282.6 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.01313, allocations: 228.5 kB / 282.8 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.01313, allocations: 3.938 kB / 282.8 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.903e-05/0.01317, allocations: 23.98 kB / 282.9 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.01317, allocations: 0 / 282.9 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.01318, allocations: 3.938 kB / 282.9 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.01318, allocations: 4 kB / 282.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01319, allocations: 0 / 282.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002039/0.01339, allocations: 200.1 kB / 283.1 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.01343, allocations: 31.75 kB / 283.1 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.01346, allocations: 4 kB / 283.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.024e-05/0.01351, allocations: 11.98 kB / 283.1 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.01358, allocations: 19.97 kB / 283.1 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.01359, allocations: 12 kB / 283.1 MB, free: 7.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001961/0.01379, allocations: 283 kB / 283.4 MB, free: 7.141 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01379, allocations: 0 / 283.4 MB, free: 7.141 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002316/0.01402, allocations: 47.94 kB / 283.5 MB, free: 7.094 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.001026/0.01505, allocations: 403 kB / 283.9 MB, free: 6.836 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002159/0.01526, allocations: 95.48 kB / 283.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01526, allocations: 0 / 283.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.5e-05/0.01534, allocations: 55.59 kB / 284 MB, free: 6.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.01568, allocations: 89.95 kB / 284.1 MB, free: 6.598 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006264/0.0163, allocations: 455.8 kB / 284.5 MB, free: 6.125 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.729e-05/0.01638, allocations: 100.3 kB / 284.6 MB, free: 6.008 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.01649, allocations: 34.27 kB / 284.7 MB, free: 5.977 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.514e-05/0.01655, allocations: 28.5 kB / 284.7 MB, free: 5.949 MB / 266.7 MB Notification: Performance of SimCode: time 1.262e-06/0.01655, allocations: 0 / 284.7 MB, free: 5.949 MB / 266.7 MB Notification: Performance of Templates: time 0.007849/0.0244, allocations: 4.071 MB / 288.8 MB, free: 1.922 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: 3.1909910009708256]