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.001485/0.001485, allocations: 96.27 kB / 20.96 MB, free: 3.586 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.001797/0.001797, allocations: 156.8 kB / 24.27 MB, free: 288 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.58/1.58, allocations: 177 MB / 204.4 MB, free: 5.613 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 2.184e-06/2.184e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.992e-05/5.211e-05, allocations: 5.266 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.006108/0.00616, allocations: 1.84 MB / 274 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.0083, allocations: 0.6231 MB / 274.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.008537, allocations: 7.938 kB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002402/0.008777, allocations: 27.67 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.009071, allocations: 43.58 kB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005436/0.009615, allocations: 79.72 kB / 274.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000452/0.01007, allocations: 171.3 kB / 275 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.01032, allocations: 48.53 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00038/0.0107, allocations: 111.7 kB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.01093, allocations: 67.78 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.01098, allocations: 12 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.0111, allocations: 19.98 kB / 275.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.01122, allocations: 43.84 kB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.01135, allocations: 51.83 kB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004927/0.01184, allocations: 195.2 kB / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.01184, allocations: 0 / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01184, allocations: 4 kB / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.01185, allocations: 3.938 kB / 275.5 MB, free: 14.46 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.001435/0.01329, allocations: 453.4 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.01335, allocations: 11.98 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002921/0.01364, allocations: 44.78 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.01409, allocations: 181.2 kB / 276.2 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.01412, allocations: 8.656 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/0.01416, allocations: 20.38 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005658/0.01473, allocations: 196 kB / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.01474, allocations: 192 / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.01477, allocations: 8.375 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.719e-05/0.01481, allocations: 7.938 kB / 276.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004693/0.01528, allocations: 143.8 kB / 276.6 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.01692, allocations: 0.684 MB / 277.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004828/0.0174, allocations: 157 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.01763, allocations: 65.92 kB / 277.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.002e-05/0.01768, allocations: 7.938 kB / 277.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003868/0.01806, allocations: 149 kB / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.074e-06/0.01806, allocations: 0 / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008831/0.01895, allocations: 269.7 kB / 277.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.932e-05/0.01904, allocations: 77.11 kB / 278 MB, free: 11.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.01937, allocations: 207 kB / 278.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-05/0.01941, allocations: 29.7 kB / 278.2 MB, free: 11.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.01957, allocations: 144.3 kB / 278.3 MB, free: 11.44 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.234e-05/0.01964, allocations: 47.64 kB / 278.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.01976, allocations: 41.7 kB / 278.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002406/0.02, allocations: 326.8 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/0.02023, allocations: 75.95 kB / 278.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.02052, allocations: 128.9 kB / 278.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005097/0.02103, allocations: 207.2 kB / 279.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.02104, allocations: 4 kB / 279.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006831/0.02172, allocations: 253.3 kB / 279.4 MB, free: 10.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.02175, allocations: 7.938 kB / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.02176, allocations: 4 kB / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.02178, allocations: 0 / 279.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002323/0.02202, allocations: 39.91 kB / 279.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.02202, allocations: 0 / 279.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.02226, allocations: 36.05 kB / 279.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.02228, allocations: 8 kB / 279.5 MB, free: 10.21 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.0002017/0.02248, allocations: 141.8 kB / 279.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.02254, allocations: 27.83 kB / 279.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006387/0.02318, allocations: 211 kB / 279.9 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.361e-06/0.02319, allocations: 0 / 279.9 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.02319, allocations: 4 kB / 279.9 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.0232, allocations: 0 / 279.9 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005815/0.02378, allocations: 201.1 kB / 280.1 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.02378, allocations: 0 / 280.1 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.02394, allocations: 19.98 kB / 280.1 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.02394, allocations: 3.938 kB / 280.1 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.02396, allocations: 11.94 kB / 280.1 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.02397, allocations: 0 / 280.1 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.02397, allocations: 0 / 280.1 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005924/0.02456, allocations: 232.4 kB / 280.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.935e-05/0.0246, allocations: 15.86 kB / 280.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.977e-05/0.02465, allocations: 19.92 kB / 280.4 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.02482, allocations: 11.98 kB / 280.4 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.02492, allocations: 19.97 kB / 280.4 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.02494, allocations: 8 kB / 280.4 MB, free: 9.242 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001986/0.02514, allocations: 144.5 kB / 280.5 MB, free: 9.102 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02514, allocations: 0 / 280.5 MB, free: 9.102 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004025/0.02555, allocations: 39.89 kB / 280.6 MB, free: 9.062 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.0002228/0.02577, allocations: 103.2 kB / 280.7 MB, free: 8.953 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005429/0.02631, allocations: 167.8 kB / 280.8 MB, free: 8.789 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.02631, allocations: 0 / 280.8 MB, free: 8.789 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002495/0.02656, allocations: 79.89 kB / 280.9 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000485/0.02705, allocations: 43.78 kB / 281 MB, free: 8.672 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009891/0.02804, allocations: 372.4 kB / 281.3 MB, free: 8.277 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001838/0.02822, allocations: 132.9 kB / 281.4 MB, free: 8.129 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.02838, allocations: 41.44 kB / 281.5 MB, free: 8.086 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.343e-05/0.02846, allocations: 16.5 kB / 281.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02846, allocations: 0 / 281.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of Templates: time 0.0081/0.03656, allocations: 2.221 MB / 283.7 MB, free: 5.895 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] 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.889937430038117]