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.0009566/0.0009566, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001092/0.001092, allocations: 168.8 kB / 24.82 MB, free: 9.27 MB / 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.039/1.039, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.562e-06/1.562e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.769e-05/1.926e-05, allocations: 6.312 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002852/0.002871, allocations: 1.869 MB / 275.3 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.004001, allocations: 0.6464 MB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.004119, allocations: 11.94 kB / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.004261, allocations: 23.67 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.004413, allocations: 35.66 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.004725, allocations: 83.72 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.004943, allocations: 171.3 kB / 276.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.005099, allocations: 48.55 kB / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.005303, allocations: 111.6 kB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.005447, allocations: 59.8 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.005477, allocations: 16 kB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.868e-05/0.005556, allocations: 27.98 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.005623, allocations: 39.83 kB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.061e-05/0.005683, allocations: 55.83 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.005912, allocations: 155.3 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.005914, allocations: 0 / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.005914, allocations: 0 / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.005918, allocations: 0 / 276.7 MB, free: 13.96 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.0006013/0.006519, allocations: 0.5349 MB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.006552, allocations: 8.031 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.867e-05/0.006651, allocations: 44.78 kB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.006802, allocations: 176.2 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.006819, allocations: 12.66 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.006833, allocations: 12.38 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.007004, allocations: 172.3 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.007011, allocations: 192 / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.007021, allocations: 4.375 kB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.007037, allocations: 19.92 kB / 277.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.614e-05/0.007103, allocations: 51.12 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005527/0.007656, allocations: 0.8013 MB / 278.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.00779, allocations: 114.2 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.673e-05/0.007827, allocations: 35.36 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.007856, allocations: 11.98 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001134/0.00797, allocations: 116.4 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.007971, allocations: 4 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002051/0.008176, allocations: 141.5 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.008213, allocations: 81.11 kB / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.008332, allocations: 245.5 kB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.008348, allocations: 29.7 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.66e-05/0.008425, allocations: 191.1 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.008452, allocations: 47.62 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.008503, allocations: 59.33 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.008612, allocations: 0.5001 MB / 280.1 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.203e-05/0.008644, allocations: 19.98 kB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.331e-05/0.008707, allocations: 102.3 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.008813, allocations: 133.3 kB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.008815, allocations: 0 / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001492/0.008964, allocations: 157.3 kB / 280.5 MB, free: 9.852 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.008975, allocations: 7.984 kB / 280.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.008981, allocations: 7.938 kB / 280.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.316e-06/0.008989, allocations: 0 / 280.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.773e-05/0.009077, allocations: 31.98 kB / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.009082, allocations: 3.938 kB / 280.6 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.813e-05/0.00914, allocations: 27.88 kB / 280.6 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.009149, allocations: 4.188 kB / 280.6 MB, free: 9.77 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 8.247e-05/0.009231, allocations: 176.6 kB / 280.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.492e-05/0.009256, allocations: 23.84 kB / 280.8 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001695/0.009425, allocations: 135.7 kB / 280.9 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.009429, allocations: 4 kB / 280.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-06/0.00943, allocations: 0 / 280.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.009434, allocations: 0 / 280.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.009555, allocations: 161.1 kB / 281.1 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.009556, allocations: 3.938 kB / 281.1 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.514e-05/0.009601, allocations: 15.98 kB / 281.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.009603, allocations: 8 kB / 281.1 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.00961, allocations: 4.109 kB / 281.1 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.009611, allocations: 3.938 kB / 281.1 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.009613, allocations: 7.938 kB / 281.1 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.009744, allocations: 164 kB / 281.3 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.501e-05/0.009759, allocations: 19.86 kB / 281.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.009772, allocations: 0 / 281.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.147e-05/0.009813, allocations: 15.98 kB / 281.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.009855, allocations: 19.91 kB / 281.3 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.009862, allocations: 4 kB / 281.3 MB, free: 8.949 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.988e-05/0.009921, allocations: 172.5 kB / 281.5 MB, free: 8.781 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009921, allocations: 0 / 281.5 MB, free: 8.781 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001579/0.01008, allocations: 39.89 kB / 281.5 MB, free: 8.742 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 8.738e-05/0.01017, allocations: 103.2 kB / 281.6 MB, free: 8.633 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.01029, allocations: 97.92 kB / 281.7 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.01029, allocations: 0 / 281.7 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.176e-05/0.01035, allocations: 43.59 kB / 281.8 MB, free: 8.488 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.01054, allocations: 55.05 kB / 281.8 MB, free: 8.438 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000512/0.01105, allocations: 358.5 kB / 282.2 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.456e-05/0.0111, allocations: 79.98 kB / 282.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.538e-05/0.01115, allocations: 17.48 kB / 282.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.01125, allocations: 110.2 kB / 282.4 MB, free: 7.832 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01125, allocations: 0 / 282.4 MB, free: 7.832 MB / 266.7 MB Notification: Performance of Templates: time 0.004539/0.01579, allocations: 2.419 MB / 284.8 MB, free: 5.461 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","",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.846063586883247]