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.001878/0.001878, allocations: 112.5 kB / 18.45 MB, free: 4.562 MB / 14.72 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.00224/0.00224, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 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 1.459/1.459, allocations: 230.6 MB / 254.8 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001539/0.001539, allocations: 47.92 kB / 374.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1046, allocations: 53.33 MB / 427.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00359/0.1082, allocations: 2.045 MB / 429.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002306/0.1105, allocations: 1.278 MB / 430.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.1106, allocations: 4 kB / 430.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008833/0.1115, allocations: 307.1 kB / 431.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005971/0.1121, allocations: 263.1 kB / 431.4 MB, free: 368 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005616/0.1126, allocations: 223.4 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2079/0.3205, allocations: 356.9 kB / 431.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.3207, allocations: 40.67 kB / 432 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004026/0.3212, allocations: 154.5 kB / 432.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.3215, allocations: 163.5 kB / 432.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.319e-05/0.3216, allocations: 18.47 kB / 432.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003019/0.3219, allocations: 84.3 kB / 432.4 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.322, allocations: 90.16 kB / 432.5 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.3222, allocations: 130 kB / 432.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.3228, allocations: 366.6 kB / 432.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3228, allocations: 0.9062 kB / 432.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3228, allocations: 0 / 432.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.3229, allocations: 1.25 kB / 432.9 MB, free: 8.129 MB / 350.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.001285/0.3241, allocations: 0.681 MB / 433.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3242, allocations: 8.719 kB / 433.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.3243, allocations: 40.39 kB / 433.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.3248, allocations: 338.7 kB / 434 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.3248, allocations: 11.17 kB / 434 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.3248, allocations: 10.09 kB / 434 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.3251, allocations: 154.6 kB / 434.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3251, allocations: 2.219 kB / 434.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.3252, allocations: 4.688 kB / 434.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3252, allocations: 5.969 kB / 434.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.3254, allocations: 72 kB / 434.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007523/0.3261, allocations: 497.5 kB / 434.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.3264, allocations: 125.6 kB / 434.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.3265, allocations: 42.81 kB / 434.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.3266, allocations: 5.516 kB / 434.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.3268, allocations: 119.1 kB / 435 MB, free: 6.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.884e-06/0.3268, allocations: 0 / 435 MB, free: 6.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005502/0.3274, allocations: 221.7 kB / 435.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.3274, allocations: 110 kB / 435.4 MB, free: 6.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005209/0.3279, allocations: 452.2 kB / 435.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.328, allocations: 35.42 kB / 435.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.3281, allocations: 171.3 kB / 436 MB, free: 6.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.086e-05/0.3281, allocations: 42.78 kB / 436 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.3282, allocations: 41.98 kB / 436.1 MB, free: 6.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.3283, allocations: 349.3 kB / 436.4 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.3284, allocations: 42.98 kB / 436.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.3285, allocations: 100.4 kB / 436.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.3287, allocations: 114.4 kB / 436.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3287, allocations: 1.062 kB / 436.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003425/0.3291, allocations: 176.8 kB / 436.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.3291, allocations: 8.047 kB / 436.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3291, allocations: 4.312 kB / 436.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.3291, allocations: 8.938 kB / 436.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.3293, allocations: 24.98 kB / 436.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.3293, allocations: 1.484 kB / 436.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.3294, allocations: 17.67 kB / 436.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.3294, allocations: 4.406 kB / 436.9 MB, free: 5.973 MB / 350.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.0001568/0.3296, allocations: 173 kB / 437.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.3296, allocations: 30.81 kB / 437.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.707e-05/0.3297, allocations: 43.55 kB / 437.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3297, allocations: 1.844 kB / 437.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3297, allocations: 1.062 kB / 437.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.3297, allocations: 0.7969 kB / 437.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002733/0.33, allocations: 307.6 kB / 437.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.33, allocations: 3.875 kB / 437.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.45e-05/0.33, allocations: 16.16 kB / 437.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.33, allocations: 1.5 kB / 437.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.33, allocations: 10.5 kB / 437.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.3301, allocations: 1.438 kB / 437.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3301, allocations: 4.062 kB / 437.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.3304, allocations: 204.6 kB / 437.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.296e-05/0.3305, allocations: 104.2 kB / 437.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.557e-05/0.3305, allocations: 10.8 kB / 437.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.892e-05/0.3306, allocations: 7.141 kB / 437.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.811e-05/0.3307, allocations: 14.41 kB / 437.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.3307, allocations: 11.44 kB / 437.8 MB, free: 5.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003818/0.3311, allocations: 332.3 kB / 438.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3311, allocations: 0.875 kB / 438.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003349/0.3314, allocations: 58.45 kB / 438.2 MB, free: 5.34 MB / 350.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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.001535/0.3329, allocations: 433 kB / 438.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003652/0.3333, allocations: 114.2 kB / 438.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3333, allocations: 4.125 kB / 438.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.3334, allocations: 54.42 kB / 438.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.3339, allocations: 80.69 kB / 438.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009777/0.3349, allocations: 0.535 MB / 439.4 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.3352, allocations: 0.7812 MB / 440.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.261e-05/0.3353, allocations: 30.47 kB / 440.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3353, allocations: 0 / 440.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of Templates: time 0.01066/0.3459, allocations: 4.309 MB / 444.6 MB, free: 3.707 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.859779553982662]