Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.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.001887/0.001887, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001988/0.001988, allocations: 161.3 kB / 24.28 MB, free: 152 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.527/1.527, allocations: 177.1 MB / 204.6 MB, free: 5.594 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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.428e-05/2.562e-05, allocations: 6.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003363/0.003388, allocations: 1.869 MB / 274.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.004719, allocations: 0.6347 MB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.004823, allocations: 7.938 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.004956, allocations: 27.66 kB / 274.8 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.005109, allocations: 43.59 kB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.005412, allocations: 75.78 kB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.005667, allocations: 171.3 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.005826, allocations: 48.55 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.006052, allocations: 111.6 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.006199, allocations: 67.78 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/0.006235, allocations: 12 kB / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.468e-05/0.00632, allocations: 23.98 kB / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.181e-05/0.006402, allocations: 43.83 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.549e-05/0.006477, allocations: 47.84 kB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.006805, allocations: 199.2 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.006808, allocations: 0 / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.006809, allocations: 0 / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.006814, allocations: 4 kB / 275.7 MB, free: 14.45 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009087/0.007723, allocations: 0.5385 MB / 276.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.007759, allocations: 8.031 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.007942, allocations: 40.8 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.008249, allocations: 184.2 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.008271, allocations: 12.64 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.008302, allocations: 16.38 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.008671, allocations: 187.6 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.008682, allocations: 192 / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.008703, allocations: 8.375 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.008727, allocations: 7.938 kB / 276.7 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002664/0.008994, allocations: 99.88 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.01022, allocations: 0.8553 MB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.01053, allocations: 138.2 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.01066, allocations: 55.42 kB / 277.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.049e-05/0.0107, allocations: 7.984 kB / 277.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.01097, allocations: 140.2 kB / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.01097, allocations: 0 / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005213/0.01149, allocations: 189.8 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.01157, allocations: 81.11 kB / 278.2 MB, free: 11.69 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.01208, allocations: 281.6 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.01212, allocations: 29.69 kB / 278.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.01228, allocations: 199 kB / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.419e-05/0.01233, allocations: 47.64 kB / 278.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.44e-05/0.01242, allocations: 55.36 kB / 278.8 MB, free: 11.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000289/0.01271, allocations: 0.5079 MB / 279.3 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.01284, allocations: 43.97 kB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.01303, allocations: 125.4 kB / 279.5 MB, free: 10.33 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.01334, allocations: 173.3 kB / 279.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.01334, allocations: 0 / 279.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004161/0.01376, allocations: 201.3 kB / 279.9 MB, free: 9.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.01377, allocations: 7.938 kB / 279.9 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.01378, allocations: 8.188 kB / 279.9 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.0138, allocations: 3.984 kB / 279.9 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.01397, allocations: 39.92 kB / 279.9 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.01398, allocations: 7.984 kB / 279.9 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.0141, allocations: 19.89 kB / 279.9 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.01413, allocations: 15.98 kB / 280 MB, free: 9.824 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.000161/0.01429, allocations: 176.5 kB / 280.1 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.01434, allocations: 27.84 kB / 280.2 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004123/0.01475, allocations: 167.7 kB / 280.3 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01475, allocations: 0 / 280.3 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.01476, allocations: 4 kB / 280.3 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.01476, allocations: 0 / 280.3 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.01504, allocations: 212.5 kB / 280.5 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.01504, allocations: 0 / 280.5 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.01515, allocations: 19.98 kB / 280.6 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.01515, allocations: 0 / 280.6 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.01516, allocations: 3.938 kB / 280.6 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.01517, allocations: 4 kB / 280.6 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.01517, allocations: 3.938 kB / 280.6 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.01556, allocations: 212 kB / 280.8 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.0156, allocations: 15.86 kB / 280.8 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.01562, allocations: 3.938 kB / 280.8 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.01572, allocations: 15.98 kB / 280.8 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.507e-05/0.01579, allocations: 19.97 kB / 280.8 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.0158, allocations: 4 kB / 280.8 MB, free: 8.875 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001666/0.01597, allocations: 188.5 kB / 281 MB, free: 8.691 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01597, allocations: 0 / 281 MB, free: 8.691 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002467/0.01622, allocations: 39.89 kB / 281.1 MB, free: 8.652 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001799/0.0164, allocations: 111.2 kB / 281.2 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.01674, allocations: 135.5 kB / 281.3 MB, free: 8.398 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.01675, allocations: 0 / 281.3 MB, free: 8.398 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.01691, allocations: 67.66 kB / 281.4 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.01723, allocations: 59.72 kB / 281.4 MB, free: 8.273 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000679/0.01791, allocations: 356.2 kB / 281.8 MB, free: 7.891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.01804, allocations: 120.9 kB / 281.9 MB, free: 7.754 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.01815, allocations: 41.44 kB / 281.9 MB, free: 7.715 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.422e-05/0.01821, allocations: 20.5 kB / 281.9 MB, free: 7.695 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01821, allocations: 0 / 281.9 MB, free: 7.695 MB / 266.7 MB Notification: Performance of Templates: time 0.006103/0.02431, allocations: 2.226 MB / 284.2 MB, free: 5.523 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.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.49811015103478]