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.00135/0.00135, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 65.17 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08798/0.08915, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005565/0.09475, allocations: 5.206 MB / 364.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007897/0.1027, allocations: 6.662 MB / 370.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006225/0.1033, allocations: 43.69 kB / 370.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.1046, allocations: 0.5006 MB / 371.3 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001733/0.1063, allocations: 0.8108 MB / 372.1 MB, free: 88 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1506/0.257, allocations: 436.7 kB / 372.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003146/0.2601, allocations: 2.042 MB / 374.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003506/0.2605, allocations: 167.7 kB / 374.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005711/0.2611, allocations: 362.5 kB / 375.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003535/0.2614, allocations: 348.2 kB / 375.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.154e-05/0.2615, allocations: 29.47 kB / 375.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.2626, allocations: 0.4893 MB / 376 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.4e-05/0.2627, allocations: 112.6 kB / 376.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003453/0.2631, allocations: 449.5 kB / 376.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001406/0.2645, allocations: 1.285 MB / 377.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2645, allocations: 1.094 kB / 377.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2645, allocations: 4 kB / 377.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.2645, allocations: 0 / 377.8 MB, free: 9.668 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.001725/0.2663, allocations: 1.437 MB / 379.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2663, allocations: 9.375 kB / 379.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002832/0.2666, allocations: 139.4 kB / 379.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.2677, allocations: 0.852 MB / 380.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.2677, allocations: 14.19 kB / 380.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.772e-05/0.2678, allocations: 27.5 kB / 380.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.2683, allocations: 309.3 kB / 380.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2683, allocations: 0 / 380.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.2683, allocations: 10.22 kB / 380.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.2683, allocations: 15.47 kB / 380.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003537/0.2687, allocations: 218.7 kB / 380.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.2704, allocations: 1.121 MB / 381.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003805/0.2707, allocations: 249.1 kB / 382.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004605/0.2712, allocations: 300.5 kB / 382.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008961/0.2721, allocations: 0.8354 MB / 383.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.2722, allocations: 39.38 kB / 383.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.743e-06/0.2722, allocations: 0 / 383.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002655/0.2748, allocations: 1.556 MB / 384.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.2749, allocations: 110.3 kB / 385 MB, free: 5.512 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.2759, allocations: 0.9348 MB / 386 MB, free: 5.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.2759, allocations: 32.48 kB / 386 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.2762, allocations: 356.5 kB / 386.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.723e-05/0.2763, allocations: 133 kB / 386.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.2764, allocations: 114.1 kB / 386.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.355e-05/0.2765, allocations: 327.3 kB / 386.9 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.2767, allocations: 120.1 kB / 387 MB, free: 4.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.277, allocations: 160.2 kB / 387.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.2782, allocations: 0.7299 MB / 387.9 MB, free: 3.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2782, allocations: 1 kB / 387.9 MB, free: 3.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008231/0.2791, allocations: 0.5595 MB / 388.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.2791, allocations: 40.36 kB / 388.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.2791, allocations: 16.45 kB / 388.5 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001963/0.2794, allocations: 67.09 kB / 388.6 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.2796, allocations: 48.33 kB / 388.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.2813, allocations: 3.329 MB / 392 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.2817, allocations: 12.98 kB / 392 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.947e-05/0.2817, allocations: 20.44 kB / 392 MB, free: 256 kB / 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003282/0.2821, allocations: 264.1 kB / 392.3 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.2822, allocations: 121.7 kB / 392.4 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.2835, allocations: 0.6604 MB / 393 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2836, allocations: 7.406 kB / 393 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2836, allocations: 2.594 kB / 393 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2836, allocations: 1.562 kB / 393 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007876/0.2844, allocations: 0.6158 MB / 393.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.668e-05/0.2844, allocations: 16 kB / 393.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.2846, allocations: 35.48 kB / 393.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.2848, allocations: 71.97 kB / 393.8 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.2848, allocations: 21.95 kB / 393.8 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/0.287, allocations: 3.333 MB / 397.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2871, allocations: 1.172 kB / 397.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.2883, allocations: 0.862 MB / 398 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004089/0.2887, allocations: 272.5 kB / 398.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.973e-05/0.2888, allocations: 8.094 kB / 398.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.2891, allocations: 15.3 kB / 398.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.932e-05/0.2892, allocations: 34.67 kB / 398.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.226e-05/0.2892, allocations: 13.75 kB / 398.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007012/0.29, allocations: 0.631 MB / 399 MB, free: 11.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.29, allocations: 4.062 kB / 399 MB, free: 11.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008958/0.2909, allocations: 223.5 kB / 399.2 MB, free: 11.02 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005501/0.2914, allocations: 298 kB / 399.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.2925, allocations: 0.7882 MB / 400.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2925, allocations: 0 / 400.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006438/0.2932, allocations: 0.6077 MB / 400.9 MB, free: 9.828 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000595/0.2938, allocations: 116.8 kB / 401 MB, free: 9.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.2958, allocations: 1.572 MB / 402.6 MB, free: 8.895 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.2963, allocations: 0.999 MB / 403.6 MB, free: 8.176 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.2965, allocations: 97.75 kB / 403.7 MB, free: 8.148 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.579e-05/0.2966, allocations: 44.34 kB / 403.7 MB, free: 8.141 MB / 318.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2966, allocations: 0 / 403.7 MB, free: 8.141 MB / 318.1 MB Notification: Performance of Templates: time 0.01511/0.3117, allocations: 8.679 MB / 412.4 MB, free: 1.121 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches