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.001912/0.001912, allocations: 81.73 kB / 20.68 MB, free: 1.023 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.002216/0.002216, allocations: 145.3 kB / 23.93 MB, free: 4.168 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.428/1.428, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.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 2.324e-06/2.324e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.775e-05, allocations: 2.281 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002532/0.00256, allocations: 1.797 MB / 320.7 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009993/0.003559, allocations: 0.566 MB / 321.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.003669, allocations: 6.344 kB / 321.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.003789, allocations: 27.39 kB / 321.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.003936, allocations: 38.84 kB / 321.3 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002952/0.004231, allocations: 75.25 kB / 321.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.004447, allocations: 175.3 kB / 321.6 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.004596, allocations: 44.73 kB / 321.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.004744, allocations: 96.78 kB / 321.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.004875, allocations: 63.5 kB / 321.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.685e-05/0.004912, allocations: 12.84 kB / 321.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.671e-05/0.004988, allocations: 22.58 kB / 321.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.005062, allocations: 50.12 kB / 321.9 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.844e-05/0.005131, allocations: 49.3 kB / 321.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.005388, allocations: 182.6 kB / 322.1 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.005392, allocations: 1.219 kB / 322.1 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.005393, allocations: 7.938 kB / 322.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.005404, allocations: 0 / 322.1 MB, free: 1.531 MB / 286.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.0008185/0.006222, allocations: 442.1 kB / 322.5 MB, free: 1.172 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.006262, allocations: 14.98 kB / 322.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.676e-05/0.006319, allocations: 23.67 kB / 322.6 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.006596, allocations: 184.9 kB / 322.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.006617, allocations: 15.58 kB / 322.8 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.006654, allocations: 18.34 kB / 322.8 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.00704, allocations: 199.9 kB / 323 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.007053, allocations: 0 / 323 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.007072, allocations: 5.844 kB / 323 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.007095, allocations: 10.42 kB / 323 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.007416, allocations: 141.8 kB / 323.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009494/0.008366, allocations: 0.6804 MB / 323.8 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.008666, allocations: 151.2 kB / 324 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.008811, allocations: 74.62 kB / 324 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.964e-05/0.00885, allocations: 3.016 kB / 324 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000232/0.009082, allocations: 152.4 kB / 324.2 MB, free: 68 kB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.984e-06/0.009084, allocations: 3.984 kB / 324.2 MB, free: 64 kB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006041/0.009689, allocations: 258.8 kB / 324.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.009749, allocations: 80.47 kB / 324.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.009956, allocations: 195.4 kB / 324.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.009987, allocations: 33.06 kB / 324.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.0101, allocations: 145.3 kB / 324.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.549e-05/0.01015, allocations: 45.84 kB / 324.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.01026, allocations: 41.25 kB / 325 MB, free: 15.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.01046, allocations: 334.1 kB / 325.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.01062, allocations: 67.97 kB / 325.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.01082, allocations: 130.7 kB / 325.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003933/0.01122, allocations: 207.2 kB / 325.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.01122, allocations: 3.938 kB / 325.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004766/0.0117, allocations: 248 kB / 326 MB, free: 14.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.01171, allocations: 6.25 kB / 326 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.01172, allocations: 2.219 kB / 326 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.01174, allocations: 3.25 kB / 326 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.01191, allocations: 38.61 kB / 326 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.01192, allocations: 3.375 kB / 326 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.0121, allocations: 30.16 kB / 326 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.01212, allocations: 6.062 kB / 326 MB, free: 14.83 MB / 302.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.0001574/0.01227, allocations: 142.8 kB / 326.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.0123, allocations: 17.36 kB / 326.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004863/0.01279, allocations: 216.1 kB / 326.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.0128, allocations: 3.047 kB / 326.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.0128, allocations: 5.031 kB / 326.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.01281, allocations: 0.75 kB / 326.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.01306, allocations: 192.9 kB / 326.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.01306, allocations: 4.734 kB / 326.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.01318, allocations: 19.73 kB / 326.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.01318, allocations: 1.188 kB / 326.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.0132, allocations: 2.953 kB / 326.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.0132, allocations: 1.906 kB / 326.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.01321, allocations: 4 kB / 326.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004338/0.01364, allocations: 233.3 kB / 326.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.838e-05/0.01368, allocations: 25.02 kB / 326.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.01371, allocations: 2.828 kB / 326.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.01386, allocations: 19.86 kB / 326.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.976e-05/0.01393, allocations: 13.95 kB / 326.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.01394, allocations: 8.359 kB / 326.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.01407, allocations: 139.5 kB / 327.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01407, allocations: 1.062 kB / 327.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.01435, allocations: 36.48 kB / 327.1 MB, free: 14.18 MB / 302.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.0001764/0.01452, allocations: 113.7 kB / 327.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004334/0.01496, allocations: 165.9 kB / 327.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01496, allocations: 0 / 327.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.01515, allocations: 81.92 kB / 327.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.01551, allocations: 47.81 kB / 327.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007545/0.01626, allocations: 364.9 kB / 327.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.01641, allocations: 129.9 kB / 328 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.01652, allocations: 40.38 kB / 328 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.542e-05/0.01658, allocations: 18.67 kB / 328 MB, free: 13.66 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.01658, allocations: 0 / 328 MB, free: 13.66 MB / 302.1 MB Notification: Performance of Templates: time 0.006344/0.02292, allocations: 2.189 MB / 330.2 MB, free: 13.23 MB / 302.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.41104918345809]