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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2405, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006489/0.2471, allocations: 5.212 MB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008926/0.256, allocations: 6.658 MB / 420.6 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006738/0.2567, allocations: 39.69 kB / 420.7 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.2581, allocations: 0.4998 MB / 421.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.2601, allocations: 0.8185 MB / 422 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.2613, allocations: 434.4 kB / 422.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003127/0.2645, allocations: 2.048 MB / 424.4 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003152/0.2648, allocations: 175 kB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000514/0.2653, allocations: 346.2 kB / 425 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.2658, allocations: 353.6 kB / 425.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.941e-05/0.2658, allocations: 32 kB / 425.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.2669, allocations: 499.5 kB / 425.8 MB, free: 400 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.267, allocations: 107.2 kB / 425.9 MB, free: 292 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.2674, allocations: 449.1 kB / 426.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.269, allocations: 1.295 MB / 427.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.269, allocations: 0 / 427.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2691, allocations: 4 kB / 427.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.776e-05/0.2691, allocations: 3.938 kB / 427.7 MB, free: 14.54 MB / 350.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.00196/0.271, allocations: 1.486 MB / 429.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.2711, allocations: 12.03 kB / 429.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.121e-05/0.2712, allocations: 62.53 kB / 429.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003175/0.2715, allocations: 147.1 kB / 429.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.2727, allocations: 0.8554 MB / 430.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.2727, allocations: 20.44 kB / 430.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.267e-05/0.2728, allocations: 23.95 kB / 430.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005598/0.2734, allocations: 310.6 kB / 430.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2734, allocations: 0 / 430.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.625e-05/0.2734, allocations: 12 kB / 430.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.2734, allocations: 7.938 kB / 430.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.2739, allocations: 229.7 kB / 430.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.2756, allocations: 1.118 MB / 431.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/0.2761, allocations: 242.4 kB / 432.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005155/0.2766, allocations: 305 kB / 432.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/0.2777, allocations: 0.8386 MB / 433.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/0.2777, allocations: 34.56 kB / 433.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.934e-06/0.2778, allocations: 0 / 433.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003067/0.2808, allocations: 1.552 MB / 434.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/0.2809, allocations: 114.8 kB / 435 MB, free: 6.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.282, allocations: 0.9301 MB / 435.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.282, allocations: 33.7 kB / 436 MB, free: 5.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003114/0.2824, allocations: 353.8 kB / 436.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.2825, allocations: 142.8 kB / 436.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.2827, allocations: 121.7 kB / 436.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2828, allocations: 321.9 kB / 436.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.2831, allocations: 124.5 kB / 437 MB, free: 4.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.2834, allocations: 159.8 kB / 437.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.2848, allocations: 0.7335 MB / 437.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2848, allocations: 0 / 437.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009815/0.2858, allocations: 0.5623 MB / 438.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.2859, allocations: 44.5 kB / 438.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-05/0.2859, allocations: 12 kB / 438.5 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002279/0.2861, allocations: 69.67 kB / 438.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.2864, allocations: 51.86 kB / 438.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002857/0.2893, allocations: 3.335 MB / 442 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003072/0.2896, allocations: 12.03 kB / 442 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.619e-05/0.2896, allocations: 20.19 kB / 442 MB, free: 15.32 MB / 366.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.0004206/0.2901, allocations: 263.9 kB / 442.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.2902, allocations: 131.1 kB / 442.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/0.2916, allocations: 0.6607 MB / 443 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.2916, allocations: 4 kB / 443.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2916, allocations: 4 kB / 443.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2916, allocations: 4 kB / 443.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007686/0.2924, allocations: 0.6121 MB / 443.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.72e-05/0.2924, allocations: 19.92 kB / 443.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.2926, allocations: 35.92 kB / 443.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.2928, allocations: 65.67 kB / 443.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.2929, allocations: 19.98 kB / 443.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/0.2956, allocations: 3.336 MB / 447.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2956, allocations: 0 / 447.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.2969, allocations: 0.8554 MB / 448 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.2973, allocations: 284.4 kB / 448.3 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.163e-05/0.2974, allocations: 12 kB / 448.3 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.2977, allocations: 15.92 kB / 448.3 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/0.2978, allocations: 27.97 kB / 448.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.2978, allocations: 23.98 kB / 448.4 MB, free: 8.559 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007768/0.2986, allocations: 0.6217 MB / 449 MB, free: 7.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2986, allocations: 0 / 449 MB, free: 7.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008448/0.2995, allocations: 227.5 kB / 449.2 MB, free: 7.711 MB / 366.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.002178/0.3017, allocations: 1.612 MB / 450.8 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.3029, allocations: 0.7884 MB / 451.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3029, allocations: 0 / 451.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007304/0.3036, allocations: 0.6243 MB / 452.2 MB, free: 4.516 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006141/0.3042, allocations: 108.7 kB / 452.3 MB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00769/0.3119, allocations: 5.761 MB / 458.1 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006734/0.3126, allocations: 1.008 MB / 459.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002852/0.3129, allocations: 93.64 kB / 459.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.3133, allocations: 279.3 kB / 459.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3133, allocations: 4 kB / 459.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05039/0.3637, allocations: 17.3 MB / 476.8 MB, free: 11.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.87, allocations: 3.625 kB / 476.8 MB, free: 11.87 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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