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.001007/0.001007, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009604/0.0009604, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.8841/0.8841, allocations: 173.4 MB / 202.2 MB, free: 8.273 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 1.703e-06/1.703e-06, allocations: 0 / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.494e-05/2.664e-05, allocations: 9.266 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002667/0.002694, allocations: 1.996 MB / 271.2 MB, free: 7.805 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.00447, allocations: 1.106 MB / 272.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.004606, allocations: 0 / 272.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007305/0.005336, allocations: 325 kB / 272.6 MB, free: 6.383 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/0.005646, allocations: 218 kB / 272.8 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004961/0.006142, allocations: 285 kB / 273.1 MB, free: 5.895 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003275/0.006469, allocations: 347 kB / 273.4 MB, free: 5.555 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.006586, allocations: 41.25 kB / 273.5 MB, free: 5.512 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.006776, allocations: 191.5 kB / 273.7 MB, free: 5.324 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.006929, allocations: 133.3 kB / 273.8 MB, free: 5.195 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.751e-05/0.006957, allocations: 16 kB / 273.8 MB, free: 5.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.007108, allocations: 87.86 kB / 273.9 MB, free: 5.094 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.158e-05/0.007199, allocations: 95.67 kB / 274 MB, free: 5 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.992e-05/0.007269, allocations: 68.48 kB / 274.1 MB, free: 4.934 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.007572, allocations: 258.9 kB / 274.3 MB, free: 4.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.007575, allocations: 1.219 kB / 274.3 MB, free: 4.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.007576, allocations: 0 / 274.3 MB, free: 4.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.00758, allocations: 0 / 274.3 MB, free: 4.68 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.0006267/0.008207, allocations: 0.6973 MB / 275 MB, free: 3.934 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.008236, allocations: 16.03 kB / 275 MB, free: 3.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.339e-05/0.008299, allocations: 36.75 kB / 275.1 MB, free: 3.883 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.008534, allocations: 273.2 kB / 275.3 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.008554, allocations: 4.375 kB / 275.3 MB, free: 3.586 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.008572, allocations: 19.92 kB / 275.3 MB, free: 3.566 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.008705, allocations: 85.62 kB / 275.4 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.008712, allocations: 0 / 275.4 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.008722, allocations: 7.938 kB / 275.4 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.008729, allocations: 4 kB / 275.4 MB, free: 3.465 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.542e-05/0.008775, allocations: 31.97 kB / 275.5 MB, free: 3.434 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003895/0.009164, allocations: 399.9 kB / 275.9 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.009292, allocations: 87.25 kB / 275.9 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.396e-05/0.009326, allocations: 27.67 kB / 276 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.009339, allocations: 3.938 kB / 276 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001111/0.00945, allocations: 96.98 kB / 276.1 MB, free: 2.773 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.002e-06/0.009451, allocations: 0 / 276.1 MB, free: 2.773 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002268/0.009677, allocations: 176.2 kB / 276.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.009706, allocations: 51.41 kB / 276.3 MB, free: 2.535 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.009954, allocations: 378.1 kB / 276.7 MB, free: 2.148 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.009973, allocations: 33.7 kB / 276.7 MB, free: 2.109 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.01008, allocations: 222.6 kB / 276.9 MB, free: 1.887 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.413e-05/0.01011, allocations: 43.67 kB / 277 MB, free: 1.844 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.01016, allocations: 47.34 kB / 277 MB, free: 1.789 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.01029, allocations: 0.5196 MB / 277.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.529e-05/0.01031, allocations: 15.98 kB / 277.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.917e-05/0.01038, allocations: 121.8 kB / 277.7 MB, free: 1.09 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.103e-05/0.01045, allocations: 82.94 kB / 277.7 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01046, allocations: 0 / 277.7 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001298/0.01059, allocations: 129.4 kB / 277.9 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.0106, allocations: 8 kB / 277.9 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.0106, allocations: 0 / 277.9 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.456e-06/0.01061, allocations: 3.938 kB / 277.9 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.758e-05/0.01068, allocations: 23.98 kB / 277.9 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-06/0.01068, allocations: 4.062 kB / 277.9 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.795e-05/0.01074, allocations: 19.89 kB / 277.9 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.01075, allocations: 7.984 kB / 277.9 MB, free: 0.7969 MB / 250.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.195e-05/0.01084, allocations: 178.5 kB / 278.1 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.071e-05/0.01087, allocations: 35.8 kB / 278.1 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.01104, allocations: 148.5 kB / 278.3 MB, free: 436 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.01104, allocations: 3.938 kB / 278.3 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.01104, allocations: 0 / 278.3 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.01105, allocations: 0 / 278.3 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004352/0.01148, allocations: 201 kB / 278.5 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.01148, allocations: 0 / 278.5 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.852e-05/0.01151, allocations: 11.94 kB / 278.5 MB, free: 192 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.01151, allocations: 0 / 278.5 MB, free: 192 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.01152, allocations: 11.98 kB / 278.5 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.01152, allocations: 0 / 278.5 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01153, allocations: 0 / 278.5 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001803/0.01171, allocations: 194.2 kB / 278.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.804e-05/0.01173, allocations: 27.81 kB / 278.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.01176, allocations: 7.984 kB / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.016e-05/0.0118, allocations: 12 kB / 278.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.01184, allocations: 15.97 kB / 278.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.01186, allocations: 7.938 kB / 278.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001287/0.01198, allocations: 246.9 kB / 279 MB, free: 15.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01198, allocations: 0 / 279 MB, free: 15.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000192/0.01218, allocations: 55.89 kB / 279.1 MB, free: 15.6 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.0008175/0.01299, allocations: 408.3 kB / 279.5 MB, free: 15.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001336/0.01313, allocations: 85.98 kB / 279.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.01313, allocations: 0 / 279.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.274e-05/0.01318, allocations: 51.58 kB / 279.6 MB, free: 15.19 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.01343, allocations: 95 kB / 279.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004943/0.01393, allocations: 430.9 kB / 280.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.887e-05/0.01399, allocations: 104.2 kB / 280.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.896e-05/0.01406, allocations: 30.27 kB / 280.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.01418, allocations: 126.1 kB / 280.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.01418, allocations: 8 kB / 280.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of Templates: time 0.006063/0.02024, allocations: 4.445 MB / 284.8 MB, free: 9.996 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","",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.834342224057764]