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.001905/0.001905, allocations: 88.31 kB / 20.96 MB, free: 3.477 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.002073/0.002073, allocations: 161.6 kB / 24.27 MB, free: 172 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.533/1.533, 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.794e-06/1.794e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.571e-05/2.75e-05, allocations: 6.312 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003256/0.003284, allocations: 1.842 MB / 274.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.004545, allocations: 0.6192 MB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.417e-05/0.00464, allocations: 7.938 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.004771, allocations: 27.67 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.004918, allocations: 39.59 kB / 274.8 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.005239, allocations: 79.78 kB / 274.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002626/0.005501, allocations: 171.3 kB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.005704, allocations: 48.55 kB / 275.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.005958, allocations: 115.6 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.006118, allocations: 55.86 kB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.006154, allocations: 15.94 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.006257, allocations: 31.97 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.138e-05/0.006349, allocations: 39.84 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.152e-05/0.00644, allocations: 47.84 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.006822, allocations: 199.2 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.006827, allocations: 8 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.006828, allocations: 0 / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.006835, allocations: 0 / 275.6 MB, free: 14.48 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.0009994/0.007834, allocations: 445.5 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.007867, allocations: 8.031 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.008061, allocations: 44.78 kB / 276.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.00837, allocations: 181.4 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.00839, allocations: 8.656 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.008419, allocations: 16.38 kB / 276.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.008886, allocations: 200.3 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.008897, allocations: 192 / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.00892, allocations: 8.375 kB / 276.5 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.008942, allocations: 7.938 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003424/0.009285, allocations: 139.8 kB / 276.7 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.01046, allocations: 0.6879 MB / 277.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/0.01081, allocations: 153.1 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.01098, allocations: 73.8 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.01101, allocations: 4.109 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.01131, allocations: 152.9 kB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.01132, allocations: 0 / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006413/0.01196, allocations: 265.7 kB / 278 MB, free: 11.95 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/0.01203, allocations: 81.11 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.01234, allocations: 199 kB / 278.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.01237, allocations: 29.7 kB / 278.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.0125, allocations: 144.3 kB / 278.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.244e-05/0.01255, allocations: 47.64 kB / 278.5 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.077e-05/0.01263, allocations: 45.7 kB / 278.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.01283, allocations: 330.8 kB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.013, allocations: 67.95 kB / 278.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.01322, allocations: 126.8 kB / 279 MB, free: 10.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.0136, allocations: 202.7 kB / 279.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.0136, allocations: 4 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005082/0.01411, allocations: 249.3 kB / 279.5 MB, free: 10.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.01413, allocations: 7.938 kB / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.01413, allocations: 4 kB / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.01415, allocations: 4.188 kB / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.01433, allocations: 47.91 kB / 279.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.01434, allocations: 0 / 279.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.0145, allocations: 31.88 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.01452, allocations: 4 kB / 279.6 MB, free: 10.25 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.0001644/0.01468, allocations: 141.8 kB / 279.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.416e-05/0.01473, allocations: 23.84 kB / 279.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004974/0.01522, allocations: 215.7 kB / 280 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.01523, allocations: 4 kB / 280 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.01523, allocations: 0 / 280 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01524, allocations: 0 / 280 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.01549, allocations: 197.1 kB / 280.2 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.01549, allocations: 0 / 280.2 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.01561, allocations: 19.98 kB / 280.2 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01561, allocations: 0 / 280.2 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.01563, allocations: 11.92 kB / 280.2 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01563, allocations: 0 / 280.2 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.01564, allocations: 160 / 280.2 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004612/0.0161, allocations: 241.7 kB / 280.4 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.197e-05/0.01613, allocations: 19.8 kB / 280.4 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.01616, allocations: 11.94 kB / 280.5 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.0163, allocations: 15.97 kB / 280.5 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.01637, allocations: 19.97 kB / 280.5 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.01638, allocations: 4 kB / 280.5 MB, free: 9.281 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001364/0.01652, allocations: 136.6 kB / 280.6 MB, free: 9.148 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01652, allocations: 0 / 280.6 MB, free: 9.148 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002678/0.01679, allocations: 47.89 kB / 280.7 MB, free: 9.102 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.0001683/0.01695, allocations: 103.2 kB / 280.8 MB, free: 8.992 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004075/0.01736, allocations: 170.9 kB / 280.9 MB, free: 8.828 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01736, allocations: 4 kB / 280.9 MB, free: 8.824 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.01754, allocations: 71.91 kB / 281 MB, free: 8.754 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.0179, allocations: 52.42 kB / 281.1 MB, free: 8.703 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000722/0.01862, allocations: 379.3 kB / 281.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.01877, allocations: 120.9 kB / 281.6 MB, free: 8.164 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.01889, allocations: 37.45 kB / 281.6 MB, free: 8.125 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.507e-05/0.01895, allocations: 28.48 kB / 281.6 MB, free: 8.098 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01895, allocations: 0 / 281.6 MB, free: 8.098 MB / 266.7 MB Notification: Performance of Templates: time 0.006131/0.02508, allocations: 2.214 MB / 283.8 MB, free: 5.934 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] 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.510483187041245]