Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001856/0.001856, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.675e-05, allocations: 2.312 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003767/0.003794, allocations: 1.978 MB / 269.3 MB, free: 4.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.00605, allocations: 1.122 MB / 270.4 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.006181, allocations: 7.938 kB / 270.4 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.007213, allocations: 319 kB / 270.7 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005097/0.007723, allocations: 215.2 kB / 270.9 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006775/0.0084, allocations: 283.2 kB / 271.2 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006423/0.009043, allocations: 347 kB / 271.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.009192, allocations: 44.52 kB / 271.6 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.009485, allocations: 179.5 kB / 271.8 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.009709, allocations: 143.6 kB / 271.9 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.00976, allocations: 20 kB / 271.9 MB, free: 2.102 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.009976, allocations: 87.86 kB / 272 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.01011, allocations: 83.73 kB / 272.1 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.01024, allocations: 79.7 kB / 272.2 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005119/0.01075, allocations: 354.7 kB / 272.5 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.01075, allocations: 0 / 272.5 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.01075, allocations: 0 / 272.5 MB, free: 1.508 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.01076, allocations: 0 / 272.5 MB, free: 1.508 MB / 250.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.001266/0.01203, allocations: 0.7124 MB / 273.2 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.01206, allocations: 12.92 kB / 273.2 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.01216, allocations: 36.75 kB / 273.3 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.01263, allocations: 272.5 kB / 273.5 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.01265, allocations: 12.38 kB / 273.6 MB, free: 408 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.01268, allocations: 11.94 kB / 273.6 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.01296, allocations: 117.6 kB / 273.7 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.01297, allocations: 0 / 273.7 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.01298, allocations: 0 / 273.7 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.01299, allocations: 4 kB / 273.7 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.01317, allocations: 59.95 kB / 273.7 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008792/0.01405, allocations: 0.5031 MB / 274.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.01438, allocations: 127.2 kB / 274.4 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.0145, allocations: 43.67 kB / 274.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.01452, allocations: 7.984 kB / 274.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.01477, allocations: 109 kB / 274.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.01477, allocations: 0 / 274.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005599/0.01533, allocations: 220.7 kB / 274.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.01538, allocations: 55.41 kB / 274.8 MB, free: 15.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005885/0.01597, allocations: 466.3 kB / 275.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.016, allocations: 29.7 kB / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.01622, allocations: 238.7 kB / 275.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/0.01629, allocations: 51.67 kB / 275.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.01638, allocations: 55.36 kB / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003485/0.01673, allocations: 0.5392 MB / 276.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.01684, allocations: 35.97 kB / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.01704, allocations: 152.9 kB / 276.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.01726, allocations: 106.9 kB / 276.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.01726, allocations: 7.969 kB / 276.5 MB, free: 13.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003416/0.0176, allocations: 169.4 kB / 276.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.01762, allocations: 8 kB / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.01763, allocations: 3.938 kB / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.01765, allocations: 0 / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.01779, allocations: 31.92 kB / 276.7 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.01779, allocations: 0 / 276.7 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.0179, allocations: 19.88 kB / 276.7 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.01792, allocations: 8 kB / 276.7 MB, free: 13.07 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.0001844/0.0181, allocations: 190.6 kB / 276.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.933e-05/0.01816, allocations: 31.81 kB / 276.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004111/0.01857, allocations: 192.4 kB / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.01858, allocations: 4 kB / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.01858, allocations: 0 / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01859, allocations: 0 / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003506/0.01894, allocations: 276.4 kB / 277.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.01894, allocations: 0 / 277.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.443e-05/0.01899, allocations: 12 kB / 277.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01899, allocations: 4 kB / 277.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.01901, allocations: 4 kB / 277.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.01902, allocations: 7.922 kB / 277.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.01902, allocations: 4 kB / 277.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003942/0.01941, allocations: 222.9 kB / 277.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-05/0.01947, allocations: 27.8 kB / 277.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.01952, allocations: 8 kB / 277.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.865e-05/0.0196, allocations: 15.92 kB / 277.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.324e-05/0.01968, allocations: 7.984 kB / 277.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.0197, allocations: 15.98 kB / 277.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003523/0.02006, allocations: 299 kB / 278 MB, free: 11.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02006, allocations: 4 kB / 278 MB, free: 11.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000285/0.02034, allocations: 55.88 kB / 278 MB, free: 11.64 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.002993/0.02333, allocations: 467.5 kB / 278.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003353/0.02367, allocations: 123.5 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.02367, allocations: 0 / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.02382, allocations: 67.66 kB / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.02427, allocations: 84.14 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008668/0.02514, allocations: 470.9 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.02533, allocations: 161.8 kB / 279.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.02544, allocations: 42.25 kB / 279.4 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.595e-05/0.02552, allocations: 32.48 kB / 279.5 MB, free: 10.35 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02552, allocations: 0 / 279.5 MB, free: 10.35 MB / 266.7 MB Notification: Performance of Templates: time 0.009782/0.0353, allocations: 3.985 MB / 283.4 MB, free: 6.414 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.456795473000966]