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.001581/0.001581, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001733/0.001733, allocations: 185.8 kB / 24.45 MB, free: 3.961 MB / 14.72 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.417/1.417, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 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 0.002568/0.002568, allocations: 51.91 kB / 371.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3339, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003585/0.3374, allocations: 1.949 MB / 425.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.3394, allocations: 1.091 MB / 426.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.3395, allocations: 7.938 kB / 426.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000901/0.3404, allocations: 315.2 kB / 427.2 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004764/0.3409, allocations: 205.4 kB / 427.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006921/0.3416, allocations: 294.9 kB / 427.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004206/0.342, allocations: 347.1 kB / 428 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.3422, allocations: 40.38 kB / 428 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.3423, allocations: 147.4 kB / 428.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.3426, allocations: 155.3 kB / 428.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.3426, allocations: 16 kB / 428.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.3428, allocations: 87.94 kB / 428.4 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3429, allocations: 91.67 kB / 428.5 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.343, allocations: 95.41 kB / 428.6 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.3435, allocations: 353.4 kB / 428.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3435, allocations: 0 / 428.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3435, allocations: 0 / 428.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3435, allocations: 0 / 428.9 MB, free: 9.348 MB / 334.1 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.0009862/0.3445, allocations: 0.5894 MB / 429.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.3445, allocations: 12.03 kB / 429.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.548e-05/0.3446, allocations: 32.7 kB / 429.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.345, allocations: 274.2 kB / 429.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.345, allocations: 16 kB / 429.9 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.345, allocations: 8 kB / 429.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.3453, allocations: 125.5 kB / 430 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.3453, allocations: 0 / 430 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.3453, allocations: 4 kB / 430 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3453, allocations: 0 / 430 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.3455, allocations: 75.95 kB / 430.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006701/0.3462, allocations: 412 kB / 430.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.3465, allocations: 142.7 kB / 430.6 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.3467, allocations: 44.84 kB / 430.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.3467, allocations: 4 kB / 430.7 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/0.3469, allocations: 123.2 kB / 430.8 MB, free: 7.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.3469, allocations: 0 / 430.8 MB, free: 7.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005196/0.3474, allocations: 228.8 kB / 431 MB, free: 7.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.3475, allocations: 55.41 kB / 431.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000523/0.348, allocations: 440.5 kB / 431.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.348, allocations: 29.7 kB / 431.5 MB, free: 6.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.3482, allocations: 164 kB / 431.7 MB, free: 6.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.721e-05/0.3482, allocations: 43.72 kB / 431.7 MB, free: 6.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.3483, allocations: 41.7 kB / 431.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.3485, allocations: 338.8 kB / 432.1 MB, free: 6.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.3486, allocations: 51.92 kB / 432.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.3488, allocations: 150.6 kB / 432.3 MB, free: 5.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.349, allocations: 110.5 kB / 432.4 MB, free: 5.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.349, allocations: 0 / 432.4 MB, free: 5.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003461/0.3494, allocations: 189.3 kB / 432.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.3494, allocations: 4 kB / 432.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.3494, allocations: 3.984 kB / 432.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.3494, allocations: 4 kB / 432.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.3495, allocations: 16 kB / 432.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.3495, allocations: 11.92 kB / 432.6 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3496, allocations: 19.95 kB / 432.6 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.3497, allocations: 8 kB / 432.7 MB, free: 5.43 MB / 334.1 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.0001705/0.3498, allocations: 163.6 kB / 432.8 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/0.3499, allocations: 31.75 kB / 432.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000415/0.3503, allocations: 204.3 kB / 433 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3503, allocations: 7.938 kB / 433 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3503, allocations: 0 / 433 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.3503, allocations: 0 / 433 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.3505, allocations: 217.2 kB / 433.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3505, allocations: 8 kB / 433.3 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.435e-05/0.3506, allocations: 15.98 kB / 433.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.3506, allocations: 3.938 kB / 433.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.3506, allocations: 4 kB / 433.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3506, allocations: 0 / 433.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3506, allocations: 0 / 433.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/0.351, allocations: 216.1 kB / 433.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.3511, allocations: 35.73 kB / 433.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.48e-05/0.3511, allocations: 15.94 kB / 433.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.006e-05/0.3512, allocations: 11.98 kB / 433.6 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.3512, allocations: 11.98 kB / 433.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.3513, allocations: 11.98 kB / 433.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003728/0.3516, allocations: 311 kB / 433.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3516, allocations: 3.938 kB / 433.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.3519, allocations: 59.88 kB / 434 MB, free: 4.059 MB / 334.1 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.001651/0.3536, allocations: 444.3 kB / 434.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003232/0.3539, allocations: 127.8 kB / 434.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3539, allocations: 0 / 434.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.3541, allocations: 63.89 kB / 434.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004154/0.3545, allocations: 89.95 kB / 434.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008574/0.3553, allocations: 0.5328 MB / 435.2 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.3555, allocations: 169.8 kB / 435.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.593e-05/0.3556, allocations: 31.44 kB / 435.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3556, allocations: 0 / 435.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of Templates: time 0.007135/0.3627, allocations: 4.271 MB / 439.7 MB, free: 14.49 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/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: 7.761632281821221]