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.001415/0.001415, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001466/0.001466, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 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.499/1.499, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 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 0.001999/0.001999, allocations: 63.91 kB / 378.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2792, allocations: 53.41 MB / 431.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003335/0.2826, allocations: 1.825 MB / 433.4 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.2839, allocations: 0.6194 MB / 434.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.284, allocations: 3.938 kB / 434.1 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.2841, allocations: 31.72 kB / 434.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.2843, allocations: 35.66 kB / 434.1 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.2846, allocations: 83.8 kB / 434.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.2848, allocations: 163.4 kB / 434.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.285, allocations: 48.5 kB / 434.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.2852, allocations: 83.62 kB / 434.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.2853, allocations: 71.56 kB / 434.6 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.2854, allocations: 16 kB / 434.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.267e-05/0.2854, allocations: 23.98 kB / 434.6 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.65e-05/0.2855, allocations: 51.77 kB / 434.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.588e-05/0.2856, allocations: 67.61 kB / 434.7 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.2859, allocations: 193.3 kB / 434.9 MB, free: 3.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2859, allocations: 4 kB / 434.9 MB, free: 3.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2859, allocations: 0 / 434.9 MB, free: 3.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.2859, allocations: 0 / 434.9 MB, free: 3.234 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.0009686/0.2869, allocations: 453.4 kB / 435.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.2869, allocations: 11.98 kB / 435.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.2871, allocations: 32.78 kB / 435.4 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.2874, allocations: 182.7 kB / 435.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.2875, allocations: 12.66 kB / 435.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/0.2875, allocations: 16.38 kB / 435.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.288, allocations: 200.4 kB / 435.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.288, allocations: 7.938 kB / 435.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.288, allocations: 7.984 kB / 435.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.578e-05/0.288, allocations: 8 kB / 435.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003358/0.2884, allocations: 143.8 kB / 436 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.2896, allocations: 0.684 MB / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003514/0.2899, allocations: 165 kB / 436.8 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.2901, allocations: 65.75 kB / 436.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.2901, allocations: 8 kB / 436.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.2904, allocations: 156.3 kB / 437.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.2904, allocations: 0 / 437.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006762/0.2911, allocations: 258 kB / 437.3 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.851e-05/0.2912, allocations: 81.05 kB / 437.4 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002354/0.2914, allocations: 202.8 kB / 437.6 MB, free: 404 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.2914, allocations: 29.7 kB / 437.6 MB, free: 368 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.2915, allocations: 148.3 kB / 437.8 MB, free: 216 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.2916, allocations: 47.62 kB / 437.8 MB, free: 168 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.378e-05/0.2917, allocations: 45.81 kB / 437.8 MB, free: 116 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.2919, allocations: 330.8 kB / 438.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.292, allocations: 71.95 kB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.2922, allocations: 125.9 kB / 438.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.2926, allocations: 206.6 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.2926, allocations: 4 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000453/0.293, allocations: 241.2 kB / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.2931, allocations: 8 kB / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.2931, allocations: 0 / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.2931, allocations: 4.188 kB / 438.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.2933, allocations: 35.92 kB / 438.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.2933, allocations: 4 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.2934, allocations: 31.86 kB / 438.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.2935, allocations: 12 kB / 438.9 MB, free: 15 MB / 350.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.0001586/0.2936, allocations: 137.7 kB / 439 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.414e-05/0.2936, allocations: 19.91 kB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005343/0.2942, allocations: 214.9 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2942, allocations: 0 / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.2942, allocations: 4 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2942, allocations: 0 / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.2945, allocations: 197.1 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2945, allocations: 3.938 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.2946, allocations: 23.92 kB / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2946, allocations: 0 / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.2946, allocations: 8 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.2946, allocations: 4 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2946, allocations: 0 / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004184/0.295, allocations: 225.8 kB / 439.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.568e-05/0.2951, allocations: 23.8 kB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.2951, allocations: 7.984 kB / 439.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.2952, allocations: 11.98 kB / 439.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.19e-05/0.2953, allocations: 23.91 kB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.2953, allocations: 4 kB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001399/0.2954, allocations: 140.6 kB / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2954, allocations: 0 / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002745/0.2957, allocations: 51.88 kB / 440 MB, free: 13.86 MB / 350.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.0001712/0.2959, allocations: 97.94 kB / 440.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004142/0.2963, allocations: 172.4 kB / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2963, allocations: 0 / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.2966, allocations: 80.2 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.2969, allocations: 56.34 kB / 440.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007763/0.2977, allocations: 365.3 kB / 440.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.2979, allocations: 128.9 kB / 440.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001225/0.298, allocations: 37.45 kB / 440.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.544e-05/0.298, allocations: 15.44 kB / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.298, allocations: 0 / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of Templates: time 0.006349/0.3044, allocations: 2.368 MB / 443.3 MB, free: 10.54 MB / 350.1 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.51081476919353]