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.00106/0.00106, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.45 kB / 306.9 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08654, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005863/0.09243, allocations: 5.206 MB / 362.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00828/0.1007, allocations: 6.663 MB / 369.3 MB, free: 2.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007898/0.1016, allocations: 35.75 kB / 369.4 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.1029, allocations: 0.5045 MB / 369.9 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002257/0.1051, allocations: 0.8147 MB / 370.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.1063, allocations: 434.4 kB / 371.1 MB, free: 364 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1547/0.261, allocations: 2.022 MB / 373.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005242/0.2616, allocations: 172 kB / 373.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009149/0.2625, allocations: 355.5 kB / 373.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005004/0.263, allocations: 346.2 kB / 374 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.692e-05/0.2631, allocations: 30.03 kB / 374 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.2648, allocations: 0.4885 MB / 374.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.2649, allocations: 115.9 kB / 374.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000342/0.2652, allocations: 439.7 kB / 375 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001396/0.2666, allocations: 1.277 MB / 376.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2666, allocations: 0 / 376.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.2667, allocations: 0.5625 kB / 376.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.2667, allocations: 0 / 376.3 MB, free: 9.133 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.001909/0.2686, allocations: 1.445 MB / 377.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2686, allocations: 12.09 kB / 377.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002973/0.2689, allocations: 140.6 kB / 377.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009786/0.2699, allocations: 0.8501 MB / 378.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.27, allocations: 17.16 kB / 378.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/0.27, allocations: 29.05 kB / 378.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.2706, allocations: 311.8 kB / 379.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2706, allocations: 1.344 kB / 379.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.2706, allocations: 5.969 kB / 379.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2706, allocations: 9.281 kB / 379.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003966/0.271, allocations: 228.6 kB / 379.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.2727, allocations: 1.118 MB / 380.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.273, allocations: 246.4 kB / 380.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004629/0.2735, allocations: 296.6 kB / 381 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008397/0.2744, allocations: 0.8326 MB / 381.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.2744, allocations: 37.16 kB / 381.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.994e-06/0.2744, allocations: 2.625 kB / 381.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002774/0.2772, allocations: 1.557 MB / 383.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.2772, allocations: 114.2 kB / 383.5 MB, free: 5.219 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.2783, allocations: 0.9276 MB / 384.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.2783, allocations: 31.86 kB / 384.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.2785, allocations: 361.8 kB / 384.9 MB, free: 4.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.914e-05/0.2786, allocations: 131.9 kB / 385 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.2788, allocations: 116.2 kB / 385.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.712e-05/0.2788, allocations: 322.6 kB / 385.4 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.2791, allocations: 124.6 kB / 385.5 MB, free: 4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.2793, allocations: 156.1 kB / 385.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.2806, allocations: 0.7334 MB / 386.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2807, allocations: 0 / 386.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008782/0.2815, allocations: 0.5573 MB / 387 MB, free: 3.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.2816, allocations: 44.09 kB / 387 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.2816, allocations: 16.94 kB / 387 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002037/0.2818, allocations: 72.91 kB / 387.1 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.2821, allocations: 47.83 kB / 387.2 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.2839, allocations: 3.324 MB / 390.5 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.2843, allocations: 13.05 kB / 390.5 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.465e-05/0.2844, allocations: 23.88 kB / 390.5 MB, free: 15.96 MB / 318.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.0003735/0.2847, allocations: 259.2 kB / 390.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.2849, allocations: 121.3 kB / 390.9 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.2863, allocations: 0.6733 MB / 391.6 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.2863, allocations: 4.172 kB / 391.6 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.2863, allocations: 1.25 kB / 391.6 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2863, allocations: 6.141 kB / 391.6 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008183/0.2871, allocations: 0.6155 MB / 392.2 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.642e-05/0.2872, allocations: 17.08 kB / 392.2 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.2874, allocations: 31.58 kB / 392.2 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001896/0.2876, allocations: 73.91 kB / 392.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.2876, allocations: 15.45 kB / 392.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002442/0.2901, allocations: 3.335 MB / 395.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2901, allocations: 0 / 395.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.2914, allocations: 0.8592 MB / 396.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/0.2918, allocations: 273.4 kB / 396.8 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.2919, allocations: 7.625 kB / 396.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.2922, allocations: 22.16 kB / 396.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.806e-05/0.2923, allocations: 31.48 kB / 396.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-05/0.2924, allocations: 21.28 kB / 396.9 MB, free: 11.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007999/0.2932, allocations: 0.6274 MB / 397.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2932, allocations: 0 / 397.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009405/0.2942, allocations: 222.8 kB / 397.7 MB, free: 10.73 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.0007349/0.2949, allocations: 306.3 kB / 398 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.2961, allocations: 0.7898 MB / 398.8 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2961, allocations: 0 / 398.8 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006837/0.2968, allocations: 0.6178 MB / 399.4 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006794/0.2975, allocations: 115.8 kB / 399.5 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.2999, allocations: 1.611 MB / 401.1 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005536/0.3005, allocations: 1.003 MB / 402.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003337/0.3009, allocations: 92.02 kB / 402.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.776e-05/0.3009, allocations: 49.59 kB / 402.3 MB, free: 7.812 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.301, allocations: 0 / 402.3 MB, free: 7.812 MB / 318.1 MB Notification: Performance of Templates: time 0.01738/0.3183, allocations: 8.674 MB / 411 MB, free: 1.523 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