Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.001365/0.001365, allocations: 116.9 kB / 18.4 MB, free: 4.648 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.001353/0.001353, allocations: 190.9 kB / 21.35 MB, free: 1.711 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.391/1.391, allocations: 222.9 MB / 247 MB, free: 4.211 MB / 190.1 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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.92 kB / 358.7 MB, free: 8.324 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.09129, allocations: 49.44 MB / 408.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003323/0.09465, allocations: 1.825 MB / 409.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.09586, allocations: 0.6193 MB / 410.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.09599, allocations: 4 kB / 410.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.09616, allocations: 35.61 kB / 410.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.09629, allocations: 23.72 kB / 410.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.09665, allocations: 95.77 kB / 410.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002463/0.0969, allocations: 175.4 kB / 410.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.0971, allocations: 82.56 kB / 411 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.09723, allocations: 71.66 kB / 411 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.09739, allocations: 87.59 kB / 411.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.201e-05/0.09743, allocations: 16 kB / 411.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.525e-05/0.09751, allocations: 20 kB / 411.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.957e-05/0.09759, allocations: 43.84 kB / 411.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.611e-05/0.09769, allocations: 91.45 kB / 411.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.09797, allocations: 199.1 kB / 411.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.09799, allocations: 4 kB / 411.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.09799, allocations: 0 / 411.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.098, allocations: 0 / 411.5 MB, free: 3.445 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009513/0.09896, allocations: 0.5023 MB / 412 MB, free: 2.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.09901, allocations: 12.03 kB / 412 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.526e-05/0.09908, allocations: 28.78 kB / 412 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.09939, allocations: 240.5 kB / 412.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.09942, allocations: 12.38 kB / 412.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.09947, allocations: 23.94 kB / 412.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004093/0.09988, allocations: 213.6 kB / 412.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.0999, allocations: 0 / 412.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.09993, allocations: 4 kB / 412.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/0.09996, allocations: 15.98 kB / 412.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003386/0.1003, allocations: 139.7 kB / 412.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.1014, allocations: 0.7817 MB / 413.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006296/0.1021, allocations: 182.7 kB / 413.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.1022, allocations: 64.81 kB / 413.7 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.1023, allocations: 7.984 kB / 413.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003021/0.1026, allocations: 154.3 kB / 413.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.607e-06/0.1026, allocations: 0 / 413.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006103/0.1032, allocations: 245.8 kB / 414.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.1033, allocations: 85.05 kB / 414.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.1035, allocations: 227 kB / 414.4 MB, free: 312 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.1036, allocations: 33.64 kB / 414.4 MB, free: 272 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.455e-05/0.1037, allocations: 136.5 kB / 414.5 MB, free: 132 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.1037, allocations: 31.75 kB / 414.6 MB, free: 100 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.011e-05/0.1038, allocations: 61.64 kB / 414.6 MB, free: 32 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.104, allocations: 330.8 kB / 415 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.1041, allocations: 76.02 kB / 415 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.1043, allocations: 133.2 kB / 415.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003599/0.1047, allocations: 216.3 kB / 415.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1047, allocations: 0 / 415.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004666/0.1052, allocations: 249.2 kB / 415.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.1052, allocations: 8 kB / 415.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1052, allocations: 0 / 415.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1053, allocations: 4 kB / 415.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.1055, allocations: 39.91 kB / 415.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1055, allocations: 12.19 kB / 415.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.1057, allocations: 35.77 kB / 415.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.1057, allocations: 12 kB / 415.7 MB, free: 14.86 MB / 350.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.0001439/0.1058, allocations: 156.4 kB / 415.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.1059, allocations: 15.91 kB / 415.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.1061, allocations: 134.9 kB / 416 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1061, allocations: 0 / 416 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1062, allocations: 7.938 kB / 416 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1062, allocations: 7.984 kB / 416 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006474/0.1068, allocations: 470.3 kB / 416.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.1068, allocations: 4 kB / 416.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.107, allocations: 19.98 kB / 416.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.107, allocations: 3.938 kB / 416.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.107, allocations: 4 kB / 416.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.107, allocations: 4.047 kB / 416.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.107, allocations: 12.12 kB / 416.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004316/0.1075, allocations: 288.1 kB / 416.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.005e-05/0.1075, allocations: 96.95 kB / 416.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.1076, allocations: 4 kB / 416.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.1077, allocations: 19.97 kB / 416.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.756e-05/0.1078, allocations: 23.97 kB / 417 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.1079, allocations: 8 kB / 417 MB, free: 13.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.108, allocations: 144.4 kB / 417.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.108, allocations: 0 / 417.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000298/0.1083, allocations: 47.89 kB / 417.2 MB, free: 13.31 MB / 350.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.0001591/0.1085, allocations: 111.1 kB / 417.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.1089, allocations: 167.8 kB / 417.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.1089, allocations: 0 / 417.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.1091, allocations: 79.89 kB / 417.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1094, allocations: 26.66 kB / 417.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007563/0.1102, allocations: 403.5 kB / 417.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.1106, allocations: 0.7319 MB / 418.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.043e-05/0.1107, allocations: 19.44 kB / 418.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1107, allocations: 0 / 418.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of Templates: time 0.005039/0.1157, allocations: 2.44 MB / 421.1 MB, free: 9.289 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.2910744700348005]