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.001354/0.001354, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001475, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2577, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006006/0.2638, allocations: 5.216 MB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008516/0.2723, allocations: 6.662 MB / 420.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009015/0.2733, allocations: 39.69 kB / 420.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.2749, allocations: 0.5037 MB / 421.2 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002795/0.2777, allocations: 0.8185 MB / 422 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.2792, allocations: 442.4 kB / 422.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003619/0.2829, allocations: 2.036 MB / 424.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000416/0.2833, allocations: 167 kB / 424.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000696/0.284, allocations: 378.2 kB / 425 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005736/0.2846, allocations: 349.6 kB / 425.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.2848, allocations: 32 kB / 425.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.2861, allocations: 0.4917 MB / 425.8 MB, free: 388 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.2862, allocations: 111.2 kB / 426 MB, free: 276 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005466/0.2868, allocations: 449 kB / 426.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001974/0.2888, allocations: 1.291 MB / 427.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2888, allocations: 0 / 427.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2888, allocations: 0 / 427.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.2888, allocations: 0 / 427.7 MB, free: 14.53 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.001796/0.2906, allocations: 1.494 MB / 429.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.2907, allocations: 8.031 kB / 429.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.088e-05/0.2908, allocations: 54.55 kB / 429.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/0.2911, allocations: 155.1 kB / 429.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.2921, allocations: 0.8554 MB / 430.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.2921, allocations: 16.44 kB / 430.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-05/0.2922, allocations: 31.89 kB / 430.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/0.2927, allocations: 314.5 kB / 430.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.2927, allocations: 0 / 430.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.2928, allocations: 8 kB / 430.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.2928, allocations: 15.94 kB / 430.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000386/0.2932, allocations: 221.8 kB / 430.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.2948, allocations: 1.118 MB / 432 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004291/0.2953, allocations: 253.8 kB / 432.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004534/0.2957, allocations: 293 kB / 432.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001009/0.2968, allocations: 0.8386 MB / 433.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.2968, allocations: 34.56 kB / 433.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.013e-06/0.2968, allocations: 0 / 433.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.00284/0.2997, allocations: 1.556 MB / 434.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.2997, allocations: 110.8 kB / 435 MB, free: 6.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009471/0.3007, allocations: 0.9379 MB / 436 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.3007, allocations: 33.64 kB / 436 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.301, allocations: 353.8 kB / 436.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.479e-05/0.3011, allocations: 138.8 kB / 436.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.3013, allocations: 121.7 kB / 436.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.906e-05/0.3014, allocations: 325.9 kB / 436.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.3016, allocations: 120.6 kB / 437 MB, free: 4.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.3018, allocations: 163.8 kB / 437.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.3032, allocations: 0.7296 MB / 437.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3032, allocations: 0 / 437.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008749/0.3041, allocations: 0.5623 MB / 438.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.031e-05/0.3041, allocations: 37.69 kB / 438.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.217e-05/0.3042, allocations: 16 kB / 438.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.3044, allocations: 77.61 kB / 438.6 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.3046, allocations: 47.94 kB / 438.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002414/0.307, allocations: 3.335 MB / 442 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000344/0.3074, allocations: 12.03 kB / 442 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.827e-05/0.3075, allocations: 19.98 kB / 442 MB, free: 15.31 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.000418/0.3079, allocations: 259.9 kB / 442.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.308, allocations: 127.1 kB / 442.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.3093, allocations: 0.6685 MB / 443.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.3093, allocations: 4 kB / 443.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3093, allocations: 3.938 kB / 443.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3093, allocations: 3.984 kB / 443.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006827/0.31, allocations: 0.616 MB / 443.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.281e-05/0.31, allocations: 11.94 kB / 443.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001811/0.3102, allocations: 35.97 kB / 443.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.3104, allocations: 73.67 kB / 443.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.3105, allocations: 20 kB / 443.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/0.3127, allocations: 3.328 MB / 447.2 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3127, allocations: 0 / 447.2 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.314, allocations: 0.8633 MB / 448 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/0.3144, allocations: 280.2 kB / 448.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.221e-05/0.3145, allocations: 8 kB / 448.3 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.3147, allocations: 11.94 kB / 448.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.563e-05/0.3148, allocations: 35.95 kB / 448.4 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.3149, allocations: 16 kB / 448.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007382/0.3156, allocations: 0.6296 MB / 449 MB, free: 7.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3156, allocations: 0 / 449 MB, free: 7.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009081/0.3166, allocations: 231.5 kB / 449.2 MB, free: 7.691 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.002151/0.3187, allocations: 1.609 MB / 450.8 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.3199, allocations: 0.7845 MB / 451.6 MB, free: 5.191 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3199, allocations: 0 / 451.6 MB, free: 5.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007171/0.3207, allocations: 0.6165 MB / 452.2 MB, free: 4.512 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.3214, allocations: 120.7 kB / 452.4 MB, free: 4.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008037/0.3294, allocations: 5.769 MB / 458.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.33, allocations: 1.008 MB / 459.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000262/0.3302, allocations: 97.62 kB / 459.2 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002919/0.3305, allocations: 283.3 kB / 459.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3305, allocations: 0 / 459.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04653/0.3771, allocations: 17.28 MB / 476.8 MB, free: 11.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.66, allocations: 22.53 kB / 476.8 MB, free: 11.85 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.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