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.001537/0.001537, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001212/0.001212, allocations: 167.9 kB / 25.61 MB, free: 8.582 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.9137/0.9137, allocations: 177.1 MB / 206 MB, free: 4.492 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.413e-06/1.413e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.661e-05, allocations: 2.312 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005826/0.005842, allocations: 2.036 MB / 276.2 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004686/0.01053, allocations: 1.239 MB / 277.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.01064, allocations: 4 kB / 277.5 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006661/0.0113, allocations: 309.5 kB / 277.8 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.01173, allocations: 270.9 kB / 278 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.01212, allocations: 227.4 kB / 278.2 MB, free: 356 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003525/0.01247, allocations: 370.9 kB / 278.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.01258, allocations: 40.91 kB / 278.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.0128, allocations: 195.4 kB / 278.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.01295, allocations: 135.7 kB / 279 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.01298, allocations: 20 kB / 279 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.01313, allocations: 91.8 kB / 279.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.419e-05/0.01323, allocations: 95.67 kB / 279.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.509e-05/0.0133, allocations: 71.77 kB / 279.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003313/0.01662, allocations: 267 kB / 279.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.01662, allocations: 7.938 kB / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.01662, allocations: 0 / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.01662, allocations: 0 / 279.5 MB, free: 15.07 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.0006565/0.01728, allocations: 0.7009 MB / 280.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.01731, allocations: 8.031 kB / 280.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.969e-05/0.01738, allocations: 44.7 kB / 280.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.01766, allocations: 279.5 kB / 280.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.01768, allocations: 8.375 kB / 280.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.0177, allocations: 16.36 kB / 280.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.01785, allocations: 90.19 kB / 280.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.01786, allocations: 3.938 kB / 280.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.01787, allocations: 0 / 280.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.01787, allocations: 4 kB / 280.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.001e-05/0.01793, allocations: 34.67 kB / 280.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004524/0.01838, allocations: 403.9 kB / 281.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.01853, allocations: 91.19 kB / 281.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.956e-05/0.01857, allocations: 27.67 kB / 281.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.01858, allocations: 8 kB / 281.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001187/0.0187, allocations: 92.98 kB / 281.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.0187, allocations: 0 / 281.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002573/0.01895, allocations: 168.2 kB / 281.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.01898, allocations: 55.41 kB / 281.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003306/0.02229, allocations: 394.5 kB / 281.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.02231, allocations: 33.7 kB / 281.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.02241, allocations: 226.7 kB / 282.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.149e-05/0.02244, allocations: 43.67 kB / 282.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.495e-05/0.02249, allocations: 51.34 kB / 282.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.02261, allocations: 0.5234 MB / 282.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.633e-05/0.02264, allocations: 15.98 kB / 282.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.398e-05/0.0227, allocations: 121.8 kB / 282.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.854e-05/0.02277, allocations: 74.97 kB / 283 MB, free: 11.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.02277, allocations: 0 / 283 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001357/0.02291, allocations: 141.3 kB / 283.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.02292, allocations: 8.094 kB / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.02293, allocations: 0 / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.375e-06/0.02294, allocations: 4 kB / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.87e-05/0.023, allocations: 27.92 kB / 283.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.02301, allocations: 4 kB / 283.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.204e-05/0.02306, allocations: 23.75 kB / 283.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.02307, allocations: 8 kB / 283.2 MB, free: 11.13 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.468e-05/0.02315, allocations: 174.6 kB / 283.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.076e-05/0.02318, allocations: 35.75 kB / 283.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001788/0.02336, allocations: 156.5 kB / 283.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.02336, allocations: 4 kB / 283.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.02337, allocations: 0 / 283.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.02337, allocations: 3.984 kB / 283.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.02351, allocations: 189 kB / 283.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.02351, allocations: 0 / 283.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.801e-05/0.02354, allocations: 15.98 kB / 283.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.02354, allocations: 4 kB / 283.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.02355, allocations: 0 / 283.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.02355, allocations: 0 / 283.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.02355, allocations: 3.938 kB / 283.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.0237, allocations: 198.4 kB / 284 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.02372, allocations: 35.69 kB / 284 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.02375, allocations: 8 kB / 284 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.984e-05/0.02379, allocations: 11.98 kB / 284 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.492e-05/0.02382, allocations: 11.98 kB / 284 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.02384, allocations: 7.984 kB / 284 MB, free: 10.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000123/0.02396, allocations: 263 kB / 284.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02396, allocations: 0 / 284.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001777/0.02414, allocations: 51.94 kB / 284.3 MB, free: 9.926 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.0007442/0.02488, allocations: 404 kB / 284.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.025, allocations: 83.53 kB / 284.8 MB, free: 9.582 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.82e-07/0.025, allocations: 4.062 kB / 284.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.154e-05/0.02505, allocations: 54.56 kB / 284.9 MB, free: 9.523 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.02531, allocations: 98.27 kB / 285 MB, free: 9.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004257/0.02573, allocations: 448.2 kB / 285.4 MB, free: 8.961 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.766e-05/0.02578, allocations: 96.16 kB / 285.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.401e-05/0.02584, allocations: 38.27 kB / 285.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.02595, allocations: 126.2 kB / 285.7 MB, free: 8.688 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02595, allocations: 0 / 285.7 MB, free: 8.688 MB / 266.7 MB Notification: Performance of Templates: time 0.005537/0.03149, allocations: 4.506 MB / 290.2 MB, free: 4.242 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.7910913885571063]