Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.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.001249/0.001249, allocations: 114.1 kB / 18.46 MB, free: 4.609 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.001323/0.001323, allocations: 216.3 kB / 21.42 MB, free: 1.652 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.477/1.477, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 51.92 kB / 374.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.114, allocations: 53.33 MB / 427.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003336/0.1173, allocations: 1.853 MB / 429.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.1187, allocations: 0.7011 MB / 430 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1188, allocations: 3.938 kB / 430 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.119, allocations: 35.66 kB / 430.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.1191, allocations: 27.67 kB / 430.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.1195, allocations: 91.78 kB / 430.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.1198, allocations: 179.4 kB / 430.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.1199, allocations: 60.77 kB / 430.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.1201, allocations: 79.7 kB / 430.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.1203, allocations: 95.53 kB / 430.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.2e-05/0.1203, allocations: 16 kB / 430.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.774e-05/0.1204, allocations: 23.98 kB / 430.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.842e-05/0.1205, allocations: 47.84 kB / 430.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.946e-05/0.1206, allocations: 79.47 kB / 430.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003122/0.1209, allocations: 207 kB / 431 MB, free: 0.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1209, allocations: 3.938 kB / 431 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1209, allocations: 0 / 431 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.1209, allocations: 0 / 431 MB, free: 0.7891 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001051/0.122, allocations: 0.5179 MB / 431.5 MB, free: 228 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.122, allocations: 8.031 kB / 431.5 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.1222, allocations: 36.72 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.1225, allocations: 252.8 kB / 431.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.1226, allocations: 16.38 kB / 431.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.1226, allocations: 20.38 kB / 431.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.123, allocations: 213.5 kB / 432 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.123, allocations: 0 / 432 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.1231, allocations: 4 kB / 432 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.1231, allocations: 12 kB / 432 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.1234, allocations: 139.8 kB / 432.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.1246, allocations: 0.7857 MB / 433 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/0.1252, allocations: 178.6 kB / 433.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.1254, allocations: 56.83 kB / 433.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.1254, allocations: 11.98 kB / 433.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002784/0.1257, allocations: 141 kB / 433.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.1257, allocations: 0 / 433.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006365/0.1263, allocations: 241.4 kB / 433.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.716e-05/0.1264, allocations: 89.11 kB / 433.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.1266, allocations: 219.1 kB / 433.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.1267, allocations: 29.7 kB / 433.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1268, allocations: 144.4 kB / 434.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.1268, allocations: 39.66 kB / 434.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.714e-05/0.1269, allocations: 65.64 kB / 434.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1271, allocations: 330.8 kB / 434.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1272, allocations: 71.95 kB / 434.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.1275, allocations: 128.5 kB / 434.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.1278, allocations: 216.4 kB / 434.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1278, allocations: 0 / 434.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004942/0.1283, allocations: 249.2 kB / 435.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1284, allocations: 8 kB / 435.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1284, allocations: 0 / 435.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.1284, allocations: 4.375 kB / 435.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.1286, allocations: 44.16 kB / 435.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1286, allocations: 4 kB / 435.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.1287, allocations: 31.83 kB / 435.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.1288, allocations: 19.86 kB / 435.2 MB, free: 12.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001688/0.1289, allocations: 152 kB / 435.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.277e-05/0.129, allocations: 20.22 kB / 435.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002877/0.1293, allocations: 139 kB / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1293, allocations: 0 / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1293, allocations: 0 / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.1293, allocations: 7.984 kB / 435.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006624/0.13, allocations: 482.2 kB / 436 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.13, allocations: 0 / 436 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.1301, allocations: 15.98 kB / 436 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1301, allocations: 0 / 436 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.1301, allocations: 8 kB / 436 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.1301, allocations: 11.92 kB / 436.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1301, allocations: 0 / 436.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004505/0.1306, allocations: 284.1 kB / 436.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/0.1306, allocations: 96.95 kB / 436.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.1307, allocations: 0 / 436.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.1308, allocations: 31.91 kB / 436.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.36e-05/0.1309, allocations: 19.97 kB / 436.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.131, allocations: 4 kB / 436.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.1311, allocations: 144.7 kB / 436.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1311, allocations: 0 / 436.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1314, allocations: 39.95 kB / 436.7 MB, free: 10.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000172/0.1316, allocations: 123.6 kB / 436.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004291/0.132, allocations: 159.7 kB / 436.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.132, allocations: 4 kB / 436.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.1322, allocations: 76.02 kB / 437 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.1326, allocations: 31.14 kB / 437 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007866/0.1333, allocations: 399.2 kB / 437.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.1337, allocations: 0.7359 MB / 438.2 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.367e-05/0.1338, allocations: 19.44 kB / 438.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1338, allocations: 4 kB / 438.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of Templates: time 0.005016/0.1388, allocations: 2.477 MB / 440.7 MB, free: 6.586 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.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.801877188991057]