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.0009542/0.0009542, allocations: 87.67 kB / 21.44 MB, free: 3.105 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.0009299/0.0009299, allocations: 154.9 kB / 24.7 MB, free: 9.441 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.8898/0.8898, allocations: 177.1 MB / 205 MB, free: 5.738 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.563e-06/1.563e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.575e-05, allocations: 4.672 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002989/0.003015, allocations: 1.995 MB / 327.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.004917, allocations: 1.231 MB / 329 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.005052, allocations: 7.938 kB / 329 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007907/0.005842, allocations: 302.7 kB / 329.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004974/0.00634, allocations: 270.9 kB / 329.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004765/0.006816, allocations: 235 kB / 329.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004109/0.007227, allocations: 363 kB / 330.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.007379, allocations: 40.89 kB / 330.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/0.007626, allocations: 199.5 kB / 330.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.007803, allocations: 135.6 kB / 330.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.007838, allocations: 16 kB / 330.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.008024, allocations: 91.86 kB / 330.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.008132, allocations: 87.69 kB / 330.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.195e-05/0.008224, allocations: 79.7 kB / 330.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004344/0.008659, allocations: 362.8 kB / 331.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.008662, allocations: 4 kB / 331.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.008663, allocations: 0 / 331.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.008669, allocations: 0 / 331.2 MB, free: 10.06 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009995/0.009668, allocations: 0.6041 MB / 331.8 MB, free: 9.414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.009708, allocations: 8.031 kB / 331.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.869e-05/0.009787, allocations: 36.7 kB / 331.8 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.01018, allocations: 280 kB / 332.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.01021, allocations: 12.23 kB / 332.1 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.01023, allocations: 8.375 kB / 332.1 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.01047, allocations: 135.1 kB / 332.3 MB, free: 8.914 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.01048, allocations: 3.938 kB / 332.3 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.0105, allocations: 0 / 332.3 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.01051, allocations: 4 kB / 332.3 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.01065, allocations: 71.95 kB / 332.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007357/0.01139, allocations: 412.1 kB / 332.7 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003934/0.01178, allocations: 134.6 kB / 332.9 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.01189, allocations: 48.83 kB / 332.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.0119, allocations: 4 kB / 332.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001695/0.01207, allocations: 113.9 kB / 333 MB, free: 8.086 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.01207, allocations: 0 / 333 MB, free: 8.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003349/0.01241, allocations: 229.2 kB / 333.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.01244, allocations: 59.41 kB / 333.3 MB, free: 7.785 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.01277, allocations: 461.5 kB / 333.8 MB, free: 7.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.01279, allocations: 29.7 kB / 333.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.01289, allocations: 180 kB / 334 MB, free: 7.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/0.01292, allocations: 35.69 kB / 334 MB, free: 7.078 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.01297, allocations: 41.7 kB / 334 MB, free: 7.031 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.01307, allocations: 350.8 kB / 334.4 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.656e-05/0.01313, allocations: 47.97 kB / 334.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.01324, allocations: 139.7 kB / 334.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.01336, allocations: 113.2 kB / 334.7 MB, free: 6.352 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01337, allocations: 32 / 334.7 MB, free: 6.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001987/0.01357, allocations: 189.3 kB / 334.9 MB, free: 6.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.01358, allocations: 4 kB / 334.9 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.01358, allocations: 0 / 334.9 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.0136, allocations: 7.938 kB / 334.9 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.648e-05/0.01367, allocations: 19.98 kB / 334.9 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.01368, allocations: 11.88 kB / 334.9 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.862e-05/0.01374, allocations: 19.88 kB / 334.9 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.816e-06/0.01375, allocations: 8 kB / 334.9 MB, free: 6.09 MB / 298.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.0001107/0.01386, allocations: 175.9 kB / 335.1 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.01389, allocations: 31.81 kB / 335.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/0.01414, allocations: 204.4 kB / 335.3 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.01414, allocations: 3.984 kB / 335.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.01415, allocations: 0 / 335.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.01415, allocations: 7.938 kB / 335.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.01431, allocations: 217.2 kB / 335.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01431, allocations: 4 kB / 335.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.899e-05/0.01434, allocations: 15.98 kB / 335.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.01434, allocations: 4 kB / 335.6 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.01435, allocations: 4 kB / 335.6 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.01436, allocations: 0 / 335.6 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01436, allocations: 0 / 335.6 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.01456, allocations: 227.4 kB / 335.8 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/0.01459, allocations: 35.73 kB / 335.8 MB, free: 5.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.01462, allocations: 11.94 kB / 335.9 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.964e-05/0.01466, allocations: 7.984 kB / 335.9 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.01471, allocations: 15.98 kB / 335.9 MB, free: 5.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.01473, allocations: 11.98 kB / 335.9 MB, free: 5.066 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002332/0.01496, allocations: 339.1 kB / 336.2 MB, free: 4.738 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01496, allocations: 0 / 336.2 MB, free: 4.738 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002058/0.01516, allocations: 47.94 kB / 336.3 MB, free: 4.691 MB / 298.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.0007318/0.0159, allocations: 448.5 kB / 336.7 MB, free: 4.426 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002094/0.01611, allocations: 119.9 kB / 336.8 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01611, allocations: 0 / 336.8 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.074e-05/0.01619, allocations: 75.06 kB / 336.9 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.01645, allocations: 78.41 kB / 337 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000766/0.01721, allocations: 0.5495 MB / 337.5 MB, free: 3.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.01732, allocations: 178.1 kB / 337.7 MB, free: 3.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.01737, allocations: 28.5 kB / 337.7 MB, free: 3.371 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01737, allocations: 0 / 337.7 MB, free: 3.371 MB / 298.7 MB Notification: Performance of Templates: time 0.004976/0.02235, allocations: 4.424 MB / 342.1 MB, free: 14.95 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.875336443074048]