Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009501/0.0009501, allocations: 85.95 kB / 23 MB, free: 1.5 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.0009909/0.0009909, allocations: 171.7 kB / 26.39 MB, free: 7.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8921/0.8921, allocations: 158.6 MB / 188.3 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 3.938 kB / 252.2 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.276e-05/2.477e-05, allocations: 2.312 kB / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003112/0.003137, allocations: 1.861 MB / 254.1 MB, free: 5.395 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.00441, allocations: 0.6047 MB / 254.7 MB, free: 4.781 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.004575, allocations: 11.94 kB / 254.7 MB, free: 4.77 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.00472, allocations: 31.66 kB / 254.7 MB, free: 4.738 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.004874, allocations: 39.53 kB / 254.8 MB, free: 4.699 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.005209, allocations: 67.8 kB / 254.9 MB, free: 4.633 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.005438, allocations: 175.3 kB / 255 MB, free: 4.461 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.005625, allocations: 41.94 kB / 255.1 MB, free: 4.422 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.005811, allocations: 95.78 kB / 255.2 MB, free: 4.328 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.005966, allocations: 67.72 kB / 255.2 MB, free: 4.262 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.753e-05/0.005994, allocations: 16 kB / 255.2 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.197e-05/0.006076, allocations: 23.98 kB / 255.3 MB, free: 4.223 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.006144, allocations: 43.77 kB / 255.3 MB, free: 4.18 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.402e-05/0.006198, allocations: 47.84 kB / 255.4 MB, free: 4.133 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.006443, allocations: 151.4 kB / 255.5 MB, free: 3.984 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.006446, allocations: 0 / 255.5 MB, free: 3.984 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.006447, allocations: 0 / 255.5 MB, free: 3.984 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.006452, allocations: 0 / 255.5 MB, free: 3.984 MB / 234.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.0006745/0.007127, allocations: 0.5309 MB / 256 MB, free: 3.418 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.007167, allocations: 15.98 kB / 256 MB, free: 3.402 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.388e-05/0.00723, allocations: 36.78 kB / 256.1 MB, free: 3.367 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.00745, allocations: 180 kB / 256.3 MB, free: 3.164 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.007475, allocations: 16.64 kB / 256.3 MB, free: 3.148 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.007494, allocations: 12.38 kB / 256.3 MB, free: 3.137 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.007718, allocations: 167.5 kB / 256.4 MB, free: 2.949 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.007736, allocations: 4.125 kB / 256.5 MB, free: 2.945 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.007749, allocations: 8.375 kB / 256.5 MB, free: 2.938 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.00777, allocations: 11.94 kB / 256.5 MB, free: 2.926 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.675e-05/0.007847, allocations: 43.95 kB / 256.5 MB, free: 2.883 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007225/0.008569, allocations: 0.8051 MB / 257.3 MB, free: 2.035 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.008753, allocations: 110 kB / 257.4 MB, free: 1.902 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.599e-05/0.008799, allocations: 39.48 kB / 257.5 MB, free: 1.855 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.008834, allocations: 8 kB / 257.5 MB, free: 1.848 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/0.009027, allocations: 116.1 kB / 257.6 MB, free: 1.715 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.009029, allocations: 0 / 257.6 MB, free: 1.715 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003109/0.00934, allocations: 137.7 kB / 257.7 MB, free: 1.574 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.009407, allocations: 81.05 kB / 257.8 MB, free: 1.477 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.009596, allocations: 250.6 kB / 258 MB, free: 1.211 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.009622, allocations: 33.7 kB / 258.1 MB, free: 1.172 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.009759, allocations: 195 kB / 258.3 MB, free: 0.9766 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.009794, allocations: 47.73 kB / 258.3 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.009866, allocations: 51.28 kB / 258.4 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.01003, allocations: 0.504 MB / 258.9 MB, free: 364 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.768e-05/0.01008, allocations: 19.98 kB / 258.9 MB, free: 344 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.133e-05/0.01016, allocations: 101.4 kB / 259 MB, free: 208 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.01029, allocations: 129.3 kB / 259.1 MB, free: 44 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.01029, allocations: 0 / 259.1 MB, free: 44 kB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002/0.01049, allocations: 157.9 kB / 259.3 MB, free: 15.88 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.01051, allocations: 4 kB / 259.3 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.01051, allocations: 7.938 kB / 259.3 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.01052, allocations: 7.938 kB / 259.3 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.01064, allocations: 31.98 kB / 259.3 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.01065, allocations: 4 kB / 259.3 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.075e-05/0.01072, allocations: 27.77 kB / 259.4 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.01073, allocations: 8 kB / 259.4 MB, free: 15.79 MB / 250.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.0001061/0.01083, allocations: 172.8 kB / 259.5 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.01086, allocations: 23.91 kB / 259.6 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001933/0.01105, allocations: 131 kB / 259.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.01106, allocations: 4 kB / 259.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.01106, allocations: 0 / 259.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.01107, allocations: 3.984 kB / 259.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.01123, allocations: 161.1 kB / 259.8 MB, free: 15.26 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.01124, allocations: 4 kB / 259.8 MB, free: 15.26 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.197e-05/0.0113, allocations: 23.92 kB / 259.9 MB, free: 15.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.0113, allocations: 3.984 kB / 259.9 MB, free: 15.23 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.01131, allocations: 4 kB / 259.9 MB, free: 15.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.01132, allocations: 4 kB / 259.9 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.01132, allocations: 7.922 kB / 259.9 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.01152, allocations: 156 kB / 260 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.145e-05/0.01154, allocations: 19.78 kB / 260.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.927e-05/0.01157, allocations: 7.984 kB / 260.1 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.966e-05/0.01162, allocations: 8 kB / 260.1 MB, free: 15 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.01168, allocations: 19.91 kB / 260.1 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.01169, allocations: 7.984 kB / 260.1 MB, free: 14.97 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.643e-05/0.01178, allocations: 168.1 kB / 260.3 MB, free: 14.81 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01178, allocations: 4 kB / 260.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000208/0.01198, allocations: 39.94 kB / 260.3 MB, free: 14.77 MB / 250.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.0001225/0.01211, allocations: 107.1 kB / 260.4 MB, free: 14.65 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001593/0.01227, allocations: 91.5 kB / 260.5 MB, free: 14.55 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01227, allocations: 0 / 260.5 MB, free: 14.55 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.188e-05/0.01233, allocations: 47.59 kB / 260.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.01258, allocations: 40.34 kB / 260.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006068/0.01319, allocations: 350.9 kB / 260.9 MB, free: 14.09 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.683e-05/0.01324, allocations: 75.98 kB / 261 MB, free: 14 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.166e-05/0.0133, allocations: 13.48 kB / 261 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.0134, allocations: 118.2 kB / 261.1 MB, free: 13.87 MB / 250.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01341, allocations: 0 / 261.1 MB, free: 13.87 MB / 250.7 MB Notification: Performance of Templates: time 0.004714/0.01812, allocations: 2.48 MB / 263.6 MB, free: 11.41 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.721294208895415]