Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002083/0.002083, allocations: 186.2 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 43.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.219, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005947/0.2249, allocations: 4.563 MB / 427.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008335/0.2333, allocations: 5.82 MB / 432.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005223/0.2338, allocations: 67.38 kB / 433 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.235, allocations: 472.9 kB / 433.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001935/0.2369, allocations: 0.8264 MB / 434.3 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.2379, allocations: 434.4 kB / 434.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002799/0.2407, allocations: 1.997 MB / 436.7 MB, free: 188 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.2409, allocations: 103.2 kB / 436.8 MB, free: 68 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005564/0.2415, allocations: 390.3 kB / 437.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.2419, allocations: 329.7 kB / 437.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.91e-05/0.242, allocations: 28 kB / 437.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00094/0.2429, allocations: 447.5 kB / 438 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.243, allocations: 119.2 kB / 438.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003382/0.2434, allocations: 325.8 kB / 438.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001551/0.2449, allocations: 1.291 MB / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2449, allocations: 0 / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2449, allocations: 0 / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.245, allocations: 0 / 439.7 MB, free: 13.16 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.00209/0.247, allocations: 1.407 MB / 441.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2471, allocations: 12.03 kB / 441.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.802e-05/0.2472, allocations: 62.53 kB / 441.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.2473, allocations: 135.1 kB / 441.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.2486, allocations: 0.76 MB / 442.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.2486, allocations: 20.44 kB / 442.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.937e-05/0.2486, allocations: 23.94 kB / 442.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005959/0.2492, allocations: 378.7 kB / 442.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2492, allocations: 0 / 442.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/0.2493, allocations: 12 kB / 442.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.2493, allocations: 15.88 kB / 442.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004341/0.2497, allocations: 255.6 kB / 442.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.2515, allocations: 1.011 MB / 443.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.2519, allocations: 252 kB / 444 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000505/0.2524, allocations: 294.7 kB / 444.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007229/0.2532, allocations: 169.4 kB / 444.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.2532, allocations: 34.5 kB / 444.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.834e-06/0.2532, allocations: 0 / 444.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002917/0.2561, allocations: 1.499 MB / 446 MB, free: 6.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.591e-05/0.2562, allocations: 114.8 kB / 446.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.2572, allocations: 0.934 MB / 447.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.2573, allocations: 33.64 kB / 447.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003052/0.2576, allocations: 361.7 kB / 447.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.2577, allocations: 138.8 kB / 447.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.2579, allocations: 121.7 kB / 447.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.258, allocations: 321.9 kB / 448 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.2583, allocations: 158.3 kB / 448.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.2586, allocations: 223.8 kB / 448.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.26, allocations: 0.7375 MB / 449.1 MB, free: 3.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.26, allocations: 7.984 kB / 449.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009779/0.261, allocations: 0.5954 MB / 449.7 MB, free: 2.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/0.261, allocations: 37.7 kB / 449.8 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.243e-05/0.2611, allocations: 19.92 kB / 449.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/0.2613, allocations: 69.72 kB / 449.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.2615, allocations: 43.97 kB / 449.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002688/0.2642, allocations: 3.114 MB / 453 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.2645, allocations: 8 kB / 453 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.235e-05/0.2645, allocations: 23.94 kB / 453 MB, free: 15.18 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.0003767/0.2649, allocations: 255.9 kB / 453.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.2651, allocations: 131.1 kB / 453.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.2664, allocations: 0.7055 MB / 454.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.2664, allocations: 4 kB / 454.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.2664, allocations: 0 / 454.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.2664, allocations: 7.984 kB / 454.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007103/0.2671, allocations: 0.5449 MB / 454.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.62e-05/0.2671, allocations: 15.94 kB / 454.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/0.2673, allocations: 31.98 kB / 454.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.2675, allocations: 73.61 kB / 454.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.989e-05/0.2675, allocations: 19.98 kB / 454.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/0.2701, allocations: 3.117 MB / 457.9 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2701, allocations: 0 / 457.9 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.2715, allocations: 0.9446 MB / 458.9 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004092/0.2719, allocations: 197 kB / 459.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.847e-05/0.272, allocations: 12.12 kB / 459.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/0.2723, allocations: 19.92 kB / 459.1 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.121e-05/0.2724, allocations: 35.95 kB / 459.1 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.2725, allocations: 19.94 kB / 459.2 MB, free: 8.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007764/0.2732, allocations: 0.6295 MB / 459.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2732, allocations: 0 / 459.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007783/0.274, allocations: 223.6 kB / 460 MB, free: 7.852 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.00224/0.2762, allocations: 1.678 MB / 461.7 MB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.2775, allocations: 0.8229 MB / 462.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2775, allocations: 0 / 462.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000753/0.2782, allocations: 0.626 MB / 463.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006052/0.2788, allocations: 116.8 kB / 463.3 MB, free: 4.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007845/0.2867, allocations: 5.955 MB / 469.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.2871, allocations: 424.9 kB / 469.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002677/0.2874, allocations: 93.64 kB / 469.7 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.2877, allocations: 279.3 kB / 470 MB, free: 13.45 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2877, allocations: 4 kB / 470 MB, free: 13.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0562/0.3439, allocations: 18.43 MB / 488.4 MB, free: 11.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.55, allocations: 8.062 kB / 488.4 MB, free: 11.22 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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 4.998e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable D3.n.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv. Warning: Get data of variable D3.n.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.225924792699516]