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.0009912/0.0009912, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.001087/0.001087, allocations: 145.7 kB / 24.89 MB, free: 8.727 MB / 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 0.9283/0.9283, allocations: 173.4 MB / 201.5 MB, free: 8.758 MB / 186.7 MB " [Timeout remaining time 179] 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 5.24e-06/5.24e-06, allocations: 4 kB / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.794e-05/4.318e-05, allocations: 2.312 kB / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004609/0.004652, allocations: 2.056 MB / 270.6 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002282/0.006934, allocations: 1.126 MB / 271.7 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.00715, allocations: 8 kB / 271.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.00826, allocations: 299.1 kB / 272 MB, free: 2.488 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005363/0.008796, allocations: 223 kB / 272.2 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008321/0.009628, allocations: 287.2 kB / 272.5 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005498/0.01018, allocations: 347 kB / 272.8 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.01034, allocations: 42.53 kB / 272.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.01063, allocations: 183.5 kB / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.01088, allocations: 131.7 kB / 273.2 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.298e-05/0.01092, allocations: 16 kB / 273.2 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000275/0.0112, allocations: 99.78 kB / 273.3 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.01131, allocations: 79.75 kB / 273.4 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.764e-05/0.0114, allocations: 79.7 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006008/0.012, allocations: 254.9 kB / 273.7 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.01201, allocations: 8 kB / 273.7 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.01201, allocations: 0 / 273.7 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.822e-06/0.01202, allocations: 0 / 273.7 MB, free: 0.7695 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.0007813/0.0128, allocations: 0.5528 MB / 274.2 MB, free: 184 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.01285, allocations: 8.922 kB / 274.3 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.357e-05/0.01294, allocations: 28.91 kB / 274.3 MB, free: 148 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.01333, allocations: 246.4 kB / 274.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/0.01336, allocations: 12.36 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.01338, allocations: 15.94 kB / 274.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.01357, allocations: 94.08 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.01358, allocations: 0 / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.01359, allocations: 11.92 kB / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.0136, allocations: 4 kB / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.739e-05/0.01366, allocations: 19.98 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004985/0.01415, allocations: 273.6 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.01433, allocations: 117.2 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.186e-05/0.01437, allocations: 32.84 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.01438, allocations: 0 / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.01454, allocations: 90.16 kB / 275.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.993e-06/0.01454, allocations: 7.938 kB / 275.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002191/0.01476, allocations: 105.1 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.0148, allocations: 59.34 kB / 275.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.01503, allocations: 324.5 kB / 275.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.01506, allocations: 25.7 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.238e-05/0.01512, allocations: 129 kB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.01515, allocations: 43.67 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.01521, allocations: 49.67 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.646e-05/0.0153, allocations: 338.8 kB / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.226e-05/0.01533, allocations: 18.81 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.489e-05/0.0154, allocations: 103.6 kB / 276.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.754e-05/0.01548, allocations: 72.11 kB / 276.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01548, allocations: 0 / 276.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001375/0.01562, allocations: 104.4 kB / 276.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.01564, allocations: 12.09 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.01564, allocations: 3.938 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.01566, allocations: 0 / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.01576, allocations: 35.86 kB / 276.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/0.01576, allocations: 0 / 276.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.612e-05/0.01582, allocations: 15.89 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.01583, allocations: 8 kB / 276.6 MB, free: 13.64 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 9.026e-05/0.01592, allocations: 130.6 kB / 276.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.076e-05/0.01594, allocations: 15.98 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.01609, allocations: 123.5 kB / 276.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.0161, allocations: 7.984 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.0161, allocations: 3.938 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.0161, allocations: 0 / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.01625, allocations: 141.7 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.01625, allocations: 0 / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.715e-05/0.01628, allocations: 19.92 kB / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.01629, allocations: 0 / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.0163, allocations: 8 kB / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.0163, allocations: 0 / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.0163, allocations: 8 kB / 277 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.01642, allocations: 134.5 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.044e-05/0.01645, allocations: 27.75 kB / 277.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.01648, allocations: 8 kB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.192e-05/0.01652, allocations: 7.984 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.01656, allocations: 11.98 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.01658, allocations: 7.984 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001186/0.0167, allocations: 135.4 kB / 277.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0167, allocations: 0 / 277.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001894/0.01689, allocations: 51.94 kB / 277.4 MB, free: 12.75 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.001129/0.01802, allocations: 0.5358 MB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.01817, allocations: 72.75 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.01817, allocations: 4 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.479e-05/0.01823, allocations: 44.06 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.01845, allocations: 88.36 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005182/0.01897, allocations: 440.8 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.172e-05/0.01902, allocations: 96.3 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.114e-05/0.01911, allocations: 38.27 kB / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.01921, allocations: 95.34 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01921, allocations: 0 / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Templates: time 0.006455/0.02567, allocations: 4.364 MB / 283.2 MB, free: 7.25 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 -s gbode -gbm=radauIIA3 -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","",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.7688974658958614]