Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009056/0.0009053, allocations: 100.5 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002188/0.0002188, allocations: 8 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08498/0.08521, allocations: 51.53 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004268/0.08952, allocations: 4.501 MB / 363.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007009/0.09655, allocations: 6.047 MB / 369.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000385/0.09697, allocations: 31.75 kB / 369.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009619/0.09794, allocations: 398.8 kB / 369.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001549/0.0995, allocations: 0.6444 MB / 370.2 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007894/0.1003, allocations: 303 kB / 370.5 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1632/0.2635, allocations: 1.929 MB / 372.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/0.2639, allocations: 144.8 kB / 372.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005669/0.2645, allocations: 318 kB / 372.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003284/0.2648, allocations: 309.4 kB / 373.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.583e-05/0.2649, allocations: 16.44 kB / 373.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.2659, allocations: 449.3 kB / 373.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.971e-05/0.266, allocations: 91.59 kB / 373.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.2662, allocations: 220.2 kB / 374 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.2672, allocations: 0.922 MB / 374.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.2672, allocations: 0 / 374.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2672, allocations: 1.062 kB / 374.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.2673, allocations: 0 / 374.9 MB, free: 9.523 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001564/0.2688, allocations: 1.304 MB / 376.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2689, allocations: 9.625 kB / 376.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.2691, allocations: 136.9 kB / 376.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.2702, allocations: 0.8071 MB / 377.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.2703, allocations: 17.41 kB / 377.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.208e-05/0.2703, allocations: 21.84 kB / 377.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005304/0.2709, allocations: 311.2 kB / 377.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2709, allocations: 2.812 kB / 377.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.2709, allocations: 10.06 kB / 377.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.2709, allocations: 6.156 kB / 377.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003735/0.2713, allocations: 225.5 kB / 377.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.2729, allocations: 1.133 MB / 378.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003603/0.2733, allocations: 245.2 kB / 379.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004437/0.2737, allocations: 303.8 kB / 379.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007415/0.2745, allocations: 0.8353 MB / 380.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.2745, allocations: 36 kB / 380.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.294e-06/0.2745, allocations: 0.9688 kB / 380.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002515/0.277, allocations: 1.584 MB / 381.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.2771, allocations: 118.8 kB / 382 MB, free: 6.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.2781, allocations: 0.9152 MB / 382.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.2782, allocations: 34.83 kB / 382.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.2784, allocations: 361.9 kB / 383.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.292e-05/0.2785, allocations: 127.7 kB / 383.4 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.118e-05/0.2785, allocations: 5.344 kB / 383.4 MB, free: 5.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.507e-05/0.2786, allocations: 322.3 kB / 383.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.2788, allocations: 124 kB / 383.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.2791, allocations: 167.7 kB / 384 MB, free: 5.355 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.2794, allocations: 178.9 kB / 384.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.2794, allocations: 0 / 384.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000869/0.2803, allocations: 0.5572 MB / 384.7 MB, free: 5.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/0.2803, allocations: 39.2 kB / 384.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.491e-05/0.2804, allocations: 19.73 kB / 384.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002273/0.2806, allocations: 71.28 kB / 384.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.2808, allocations: 49.84 kB / 384.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.2827, allocations: 2.987 MB / 387.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.283, allocations: 16.06 kB / 387.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/0.283, allocations: 20.22 kB / 387.9 MB, free: 2.449 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003845/0.2834, allocations: 257.1 kB / 388.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.2836, allocations: 122.9 kB / 388.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.2849, allocations: 0.6811 MB / 389 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.361e-06/0.2849, allocations: 3.938 kB / 389 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2849, allocations: 1.906 kB / 389 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.2849, allocations: 2.406 kB / 389 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007608/0.2857, allocations: 0.6198 MB / 389.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.489e-05/0.2857, allocations: 14.56 kB / 389.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.2859, allocations: 40.5 kB / 389.7 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.2861, allocations: 70.28 kB / 389.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.936e-05/0.2861, allocations: 19.69 kB / 389.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/0.288, allocations: 2.991 MB / 392.8 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.288, allocations: 1.219 kB / 392.8 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.2894, allocations: 0.866 MB / 393.6 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000383/0.2898, allocations: 269.8 kB / 393.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.879e-05/0.2899, allocations: 7.672 kB / 393.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.2902, allocations: 20.67 kB / 393.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-05/0.2903, allocations: 33.33 kB / 393.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.2903, allocations: 18.66 kB / 394 MB, free: 14.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008079/0.2911, allocations: 0.6181 MB / 394.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2912, allocations: 1.156 kB / 394.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009411/0.2921, allocations: 220.1 kB / 394.8 MB, free: 14.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005357/0.2926, allocations: 296.4 kB / 395.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.2937, allocations: 0.7846 MB / 395.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.2937, allocations: 1.594 kB / 395.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006311/0.2943, allocations: 0.6178 MB / 396.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005865/0.2949, allocations: 116.6 kB / 396.6 MB, free: 13.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.2974, allocations: 1.866 MB / 398.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000625/0.298, allocations: 1.002 MB / 399.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003561/0.2984, allocations: 96.98 kB / 399.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.602e-05/0.2985, allocations: 45.88 kB / 399.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2985, allocations: 0 / 399.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of Templates: time 0.0155/0.314, allocations: 8.2 MB / 407.8 MB, free: 7.324 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches