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.002108/0.002108, allocations: 95.61 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.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.002508/0.002508, allocations: 161.3 kB / 24.27 MB, free: 156 kB / 18.57 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.553/1.553, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 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 1.322e-06/1.322e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.342e-05/2.475e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003848/0.003873, allocations: 2.026 MB / 274.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.006278, allocations: 1.251 MB / 275.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.00638, allocations: 3.938 kB / 275.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009292/0.007309, allocations: 311 kB / 275.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006133/0.007922, allocations: 262.9 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005552/0.008477, allocations: 231.3 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004693/0.008947, allocations: 367 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.009076, allocations: 40.89 kB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.009371, allocations: 195.5 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.009599, allocations: 143.6 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.349e-05/0.009642, allocations: 20 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.009851, allocations: 87.88 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.009985, allocations: 91.67 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.0101, allocations: 75.72 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005274/0.01063, allocations: 366.8 kB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.01063, allocations: 0 / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01063, allocations: 0 / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.01064, allocations: 3.938 kB / 277.7 MB, free: 12.41 MB / 266.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.001097/0.01173, allocations: 0.7241 MB / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.01177, allocations: 8.031 kB / 278.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.01187, allocations: 44.7 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.01237, allocations: 282.9 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.01239, allocations: 8.375 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.01241, allocations: 12.31 kB / 278.8 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.01267, allocations: 118 kB / 278.9 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.01269, allocations: 3.938 kB / 278.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.0127, allocations: 4 kB / 278.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.01271, allocations: 4 kB / 278.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.01289, allocations: 59.95 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008531/0.01374, allocations: 0.515 MB / 279.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.01406, allocations: 123.2 kB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.01417, allocations: 43.67 kB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.01419, allocations: 4 kB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/0.01445, allocations: 116.9 kB / 279.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.01445, allocations: 0 / 279.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005201/0.01497, allocations: 209.1 kB / 280 MB, free: 9.996 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.01502, allocations: 59.39 kB / 280 MB, free: 9.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008355/0.01586, allocations: 498.6 kB / 280.5 MB, free: 9.422 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.01589, allocations: 33.7 kB / 280.6 MB, free: 9.383 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.01612, allocations: 246.8 kB / 280.8 MB, free: 9.137 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.01619, allocations: 39.7 kB / 280.8 MB, free: 9.098 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.208e-05/0.01628, allocations: 55.36 kB / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003322/0.01661, allocations: 0.5391 MB / 281.4 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.01672, allocations: 43.98 kB / 281.5 MB, free: 8.441 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.01692, allocations: 145.8 kB / 281.6 MB, free: 8.266 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.01715, allocations: 111 kB / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01715, allocations: 0 / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003478/0.0175, allocations: 185.3 kB / 281.9 MB, free: 7.957 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.01752, allocations: 4 kB / 281.9 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.01753, allocations: 4 kB / 281.9 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.01754, allocations: 0 / 281.9 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.01766, allocations: 23.92 kB / 281.9 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.01767, allocations: 7.938 kB / 281.9 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.01777, allocations: 15.95 kB / 282 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.01779, allocations: 7.984 kB / 282 MB, free: 7.895 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.0001778/0.01797, allocations: 194.5 kB / 282.2 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.264e-05/0.01803, allocations: 35.81 kB / 282.2 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004149/0.01844, allocations: 184.5 kB / 282.4 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.01845, allocations: 4 kB / 282.4 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.01845, allocations: 0 / 282.4 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.01846, allocations: 3.938 kB / 282.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003598/0.01882, allocations: 284.4 kB / 282.7 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.01882, allocations: 0 / 282.7 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.251e-05/0.01887, allocations: 12 kB / 282.7 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.01888, allocations: 0 / 282.7 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.01889, allocations: 7.984 kB / 282.7 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.0189, allocations: 8 kB / 282.7 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.0189, allocations: 0 / 282.7 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004139/0.01931, allocations: 229.8 kB / 282.9 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.032e-05/0.01938, allocations: 35.73 kB / 282.9 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.054e-05/0.01942, allocations: 4 kB / 283 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.443e-05/0.01951, allocations: 11.98 kB / 283 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.417e-05/0.01957, allocations: 11.98 kB / 283 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.0196, allocations: 11.98 kB / 283 MB, free: 6.805 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003757/0.01997, allocations: 323 kB / 283.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01997, allocations: 0 / 283.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002935/0.02027, allocations: 55.94 kB / 283.4 MB, free: 6.441 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.002878/0.02314, allocations: 459.4 kB / 283.8 MB, free: 6.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003378/0.02348, allocations: 123.5 kB / 283.9 MB, free: 6.047 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.02348, allocations: 0 / 283.9 MB, free: 6.047 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.02364, allocations: 67.66 kB / 284 MB, free: 5.977 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.02412, allocations: 95.86 kB / 284.1 MB, free: 5.887 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008839/0.02501, allocations: 478.9 kB / 284.6 MB, free: 5.391 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001881/0.0252, allocations: 166.2 kB / 284.7 MB, free: 5.211 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.02531, allocations: 46.25 kB / 284.8 MB, free: 5.164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.964e-05/0.02539, allocations: 28.5 kB / 284.8 MB, free: 5.137 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02539, allocations: 0 / 284.8 MB, free: 5.137 MB / 266.7 MB Notification: Performance of Templates: time 0.009832/0.03522, allocations: 4.044 MB / 288.8 MB, free: 1.137 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/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: 4.676527654984966]