Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.001847/0.001847, allocations: 112 kB / 20.43 MB, free: 1.301 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.002137/0.002137, allocations: 189.2 kB / 23.72 MB, free: 4.551 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.496/1.496, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 43.92 kB / 370.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2948, allocations: 52.18 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003607/0.2984, allocations: 1.901 MB / 425 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.2996, allocations: 0.5805 MB / 425.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.2997, allocations: 7.938 kB / 425.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.2999, allocations: 23.72 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.3001, allocations: 39.66 kB / 425.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.3004, allocations: 75.75 kB / 425.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.3007, allocations: 167.4 kB / 425.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.3008, allocations: 37.95 kB / 425.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.301, allocations: 79.7 kB / 426 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.3011, allocations: 83.55 kB / 426.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.3012, allocations: 12 kB / 426.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.081e-05/0.3012, allocations: 24 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.082e-05/0.3013, allocations: 43.84 kB / 426.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.3014, allocations: 87.45 kB / 426.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.3017, allocations: 188.3 kB / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3018, allocations: 0 / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3018, allocations: 0 / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3018, allocations: 0 / 426.4 MB, free: 11.34 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001016/0.3028, allocations: 449.5 kB / 426.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3028, allocations: 12.03 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.3029, allocations: 20.8 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.3032, allocations: 179 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.3032, allocations: 12.66 kB / 427.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.3032, allocations: 15.94 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.3037, allocations: 203.7 kB / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3037, allocations: 0 / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.3037, allocations: 11.98 kB / 427.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.3037, allocations: 4 kB / 427.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003617/0.3041, allocations: 143.8 kB / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.3054, allocations: 0.7303 MB / 428.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3057, allocations: 161 kB / 428.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.3059, allocations: 73.8 kB / 428.4 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.3059, allocations: 7.984 kB / 428.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002979/0.3062, allocations: 153.2 kB / 428.6 MB, free: 9.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.3062, allocations: 4 kB / 428.6 MB, free: 9.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006225/0.3068, allocations: 249.4 kB / 428.8 MB, free: 8.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.067e-05/0.3069, allocations: 77.11 kB / 428.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.3071, allocations: 203 kB / 429.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.3072, allocations: 29.7 kB / 429.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.3073, allocations: 144.3 kB / 429.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.177e-05/0.3073, allocations: 55.75 kB / 429.3 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.096e-05/0.3074, allocations: 45.64 kB / 429.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.3076, allocations: 334.8 kB / 429.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.3078, allocations: 67.95 kB / 429.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.308, allocations: 138.2 kB / 429.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.3083, allocations: 206.7 kB / 430.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3083, allocations: 0 / 430.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004325/0.3087, allocations: 245.2 kB / 430.3 MB, free: 7.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.3088, allocations: 7.938 kB / 430.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3088, allocations: 4 kB / 430.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.3088, allocations: 4 kB / 430.4 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.309, allocations: 36.16 kB / 430.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.309, allocations: 7.938 kB / 430.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.3091, allocations: 27.88 kB / 430.4 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.3091, allocations: 4 kB / 430.4 MB, free: 7.066 MB / 334.1 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.0001542/0.3093, allocations: 145.7 kB / 430.6 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.3093, allocations: 15.91 kB / 430.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004745/0.3098, allocations: 215.6 kB / 430.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.3098, allocations: 4 kB / 430.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3098, allocations: 0 / 430.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3098, allocations: 3.984 kB / 430.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.3101, allocations: 240.6 kB / 431 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3101, allocations: 0 / 431 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.3102, allocations: 23.92 kB / 431.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3102, allocations: 0 / 431.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.3102, allocations: 4 kB / 431.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3102, allocations: 160 / 431.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3102, allocations: 4 kB / 431.1 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.3107, allocations: 241.6 kB / 431.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.299e-05/0.3107, allocations: 15.89 kB / 431.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.3107, allocations: 96 / 431.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.3109, allocations: 23.92 kB / 431.4 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.018e-05/0.311, allocations: 19.97 kB / 431.4 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.311, allocations: 7.984 kB / 431.4 MB, free: 6.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.3111, allocations: 144.5 kB / 431.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3111, allocations: 0 / 431.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.3114, allocations: 43.89 kB / 431.6 MB, free: 5.855 MB / 334.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: 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.000158/0.3115, allocations: 99.19 kB / 431.7 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004374/0.312, allocations: 171.8 kB / 431.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.312, allocations: 0 / 431.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.3122, allocations: 79.89 kB / 431.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.3125, allocations: 47.91 kB / 432 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007492/0.3133, allocations: 373.5 kB / 432.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.3137, allocations: 0.732 MB / 433.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.3138, allocations: 41.44 kB / 433.1 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.036e-05/0.3139, allocations: 19.44 kB / 433.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3139, allocations: 0 / 433.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of Templates: time 0.006163/0.3201, allocations: 2.208 MB / 435.3 MB, free: 2.062 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.5208922093734145]