Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001846/0.001846, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001966/0.001966, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 177 MB / 204.5 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.993e-06/1.993e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.28e-05/3.479e-05, allocations: 5.266 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003511/0.003546, allocations: 1.848 MB / 274 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.004913, allocations: 0.6387 MB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.005014, allocations: 7.938 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.00516, allocations: 27.67 kB / 274.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001658/0.005325, allocations: 43.59 kB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.005655, allocations: 79.72 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002723/0.005927, allocations: 175.3 kB / 275 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.006093, allocations: 48.55 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.006336, allocations: 107.6 kB / 275.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.006483, allocations: 59.8 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.758e-05/0.006521, allocations: 12 kB / 275.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.771e-05/0.006608, allocations: 27.98 kB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.006692, allocations: 43.83 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.12e-05/0.006773, allocations: 51.83 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003441/0.007117, allocations: 199.2 kB / 275.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.007122, allocations: 4 kB / 275.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.007123, allocations: 0 / 275.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.007131, allocations: 0 / 275.5 MB, free: 14.43 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.001008/0.008139, allocations: 0.5384 MB / 276.1 MB, free: 13.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.008194, allocations: 11.98 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.008391, allocations: 44.78 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.008708, allocations: 180.3 kB / 276.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/0.008968, allocations: 16.59 kB / 276.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.009002, allocations: 20.38 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003835/0.009385, allocations: 179.4 kB / 276.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.009397, allocations: 192 / 276.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.009424, allocations: 12.36 kB / 276.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.009447, allocations: 7.938 kB / 276.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/0.009716, allocations: 99.89 kB / 276.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.01097, allocations: 0.8631 MB / 277.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.0113, allocations: 134.1 kB / 277.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.01143, allocations: 59.42 kB / 277.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.281e-05/0.01147, allocations: 4 kB / 277.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002705/0.01174, allocations: 140.5 kB / 277.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.01174, allocations: 0 / 277.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005406/0.01228, allocations: 189.6 kB / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.01235, allocations: 85.11 kB / 278.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.01263, allocations: 273.6 kB / 278.4 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.146e-05/0.01266, allocations: 29.7 kB / 278.4 MB, free: 11.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.01282, allocations: 207 kB / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.026e-05/0.01287, allocations: 47.64 kB / 278.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.01297, allocations: 55.36 kB / 278.7 MB, free: 11.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003002/0.01327, allocations: 0.504 MB / 279.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.0134, allocations: 43.97 kB / 279.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.0136, allocations: 127.6 kB / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.01392, allocations: 177.9 kB / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01392, allocations: 0 / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004315/0.01435, allocations: 209.4 kB / 279.8 MB, free: 9.879 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.01437, allocations: 7.938 kB / 279.8 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.01438, allocations: 7.984 kB / 279.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.0144, allocations: 0 / 279.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.01457, allocations: 39.92 kB / 279.8 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.01458, allocations: 4 kB / 279.8 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.01471, allocations: 19.88 kB / 279.8 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.01473, allocations: 12 kB / 279.8 MB, free: 9.789 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.0001774/0.01491, allocations: 180.5 kB / 280 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.084e-05/0.01496, allocations: 27.88 kB / 280 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004195/0.01538, allocations: 163 kB / 280.2 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.01539, allocations: 3.984 kB / 280.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.0154, allocations: 4 kB / 280.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.0154, allocations: 0 / 280.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.01568, allocations: 208.5 kB / 280.4 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01569, allocations: 0 / 280.4 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.0158, allocations: 23.98 kB / 280.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.0158, allocations: 0 / 280.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.01582, allocations: 7.922 kB / 280.5 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.01582, allocations: 11.94 kB / 280.5 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.01582, allocations: 7.938 kB / 280.5 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.01622, allocations: 195.9 kB / 280.7 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.01625, allocations: 19.84 kB / 280.7 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.061e-05/0.01628, allocations: 7.938 kB / 280.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.01639, allocations: 11.98 kB / 280.7 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.01646, allocations: 19.97 kB / 280.7 MB, free: 8.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.01648, allocations: 4 kB / 280.7 MB, free: 8.832 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00017/0.01665, allocations: 188.5 kB / 280.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01665, allocations: 3.938 kB / 280.9 MB, free: 8.645 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002665/0.01691, allocations: 43.89 kB / 281 MB, free: 8.602 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.0001662/0.01708, allocations: 99.25 kB / 281.1 MB, free: 8.496 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003547/0.01743, allocations: 138.2 kB / 281.2 MB, free: 8.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01744, allocations: 0 / 281.2 MB, free: 8.359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.0176, allocations: 67.59 kB / 281.3 MB, free: 8.289 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.01794, allocations: 40.34 kB / 281.3 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007222/0.01866, allocations: 360.5 kB / 281.6 MB, free: 7.863 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.0188, allocations: 116.9 kB / 281.8 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.01891, allocations: 33.45 kB / 281.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.757e-05/0.01897, allocations: 20.5 kB / 281.8 MB, free: 7.68 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01897, allocations: 0 / 281.8 MB, free: 7.68 MB / 266.7 MB Notification: Performance of Templates: time 0.006864/0.02583, allocations: 2.237 MB / 284 MB, free: 5.488 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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_trunk_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.437585636973381]