Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002359/0.002359, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 48.06 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2147, allocations: 53.36 MB / 431.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006128/0.2208, allocations: 4.584 MB / 435.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009048/0.2299, allocations: 5.859 MB / 441.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007114/0.2306, allocations: 63.31 kB / 441.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.2319, allocations: 468.9 kB / 442 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002539/0.2344, allocations: 0.8341 MB / 442.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.2357, allocations: 438.4 kB / 443.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003112/0.2388, allocations: 2.052 MB / 445.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.239, allocations: 95.27 kB / 445.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005552/0.2396, allocations: 394.2 kB / 445.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004219/0.24, allocations: 349.6 kB / 446.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.939e-05/0.2401, allocations: 32 kB / 446.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.2411, allocations: 491.6 kB / 446.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.2412, allocations: 111.2 kB / 446.8 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000325/0.2415, allocations: 321.8 kB / 447.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001528/0.243, allocations: 1.307 MB / 448.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.243, allocations: 0 / 448.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.243, allocations: 0 / 448.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.2431, allocations: 0 / 448.4 MB, free: 5.363 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.002032/0.2451, allocations: 1.423 MB / 449.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2451, allocations: 8.031 kB / 449.8 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.309e-05/0.2452, allocations: 58.55 kB / 449.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.2455, allocations: 147.1 kB / 450 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.2467, allocations: 0.7678 MB / 450.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.2467, allocations: 16.44 kB / 450.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.853e-05/0.2468, allocations: 23.95 kB / 450.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005861/0.2474, allocations: 366.7 kB / 451.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.2474, allocations: 0 / 451.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.2474, allocations: 12 kB / 451.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2474, allocations: 7.938 kB / 451.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004664/0.2479, allocations: 263.5 kB / 451.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.2497, allocations: 1.007 MB / 452.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004288/0.2501, allocations: 256.8 kB / 452.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000511/0.2506, allocations: 303.3 kB / 453 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007012/0.2513, allocations: 161.4 kB / 453.2 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.2513, allocations: 34.56 kB / 453.2 MB, free: 360 kB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.954e-06/0.2513, allocations: 0 / 453.2 MB, free: 360 kB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002956/0.2543, allocations: 1.5 MB / 454.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.682e-05/0.2544, allocations: 110.8 kB / 454.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.2555, allocations: 0.9418 MB / 455.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.2555, allocations: 33.7 kB / 455.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.2558, allocations: 353.8 kB / 456.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.256, allocations: 138.8 kB / 456.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.2561, allocations: 117.7 kB / 456.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2563, allocations: 325.9 kB / 456.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.2566, allocations: 158.3 kB / 456.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003216/0.2569, allocations: 226.9 kB / 457.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001471/0.2584, allocations: 0.7453 MB / 457.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2584, allocations: 0 / 457.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001009/0.2594, allocations: 0.5916 MB / 458.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.2594, allocations: 41.69 kB / 458.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.325e-05/0.2595, allocations: 24.03 kB / 458.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/0.2597, allocations: 69.67 kB / 458.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.2599, allocations: 43.91 kB / 458.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002814/0.2627, allocations: 3.109 MB / 461.7 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.263, allocations: 16.02 kB / 461.7 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.086e-05/0.2631, allocations: 20 kB / 461.7 MB, free: 7.363 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.0003881/0.2634, allocations: 264 kB / 462 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.2636, allocations: 127.1 kB / 462.1 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/0.2649, allocations: 0.7053 MB / 462.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.2649, allocations: 4 kB / 462.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.265, allocations: 0 / 462.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.265, allocations: 7.984 kB / 462.8 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007152/0.2657, allocations: 0.5449 MB / 463.4 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.435e-05/0.2657, allocations: 23.92 kB / 463.4 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.2659, allocations: 35.92 kB / 463.5 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001888/0.2661, allocations: 69.67 kB / 463.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.644e-05/0.2661, allocations: 15.98 kB / 463.5 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002852/0.269, allocations: 3.113 MB / 466.6 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.269, allocations: 0 / 466.6 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.2704, allocations: 0.9447 MB / 467.6 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004254/0.2708, allocations: 201 kB / 467.8 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.379e-05/0.2709, allocations: 8 kB / 467.8 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.2712, allocations: 19.92 kB / 467.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.436e-05/0.2713, allocations: 27.95 kB / 467.8 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.973e-05/0.2713, allocations: 20 kB / 467.9 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008064/0.2721, allocations: 0.6256 MB / 468.5 MB, free: 268 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2721, allocations: 0 / 468.5 MB, free: 268 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007806/0.2729, allocations: 231.5 kB / 468.7 MB, free: 36 kB / 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.002252/0.2752, allocations: 1.678 MB / 470.4 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.2765, allocations: 0.8236 MB / 471.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2765, allocations: 0 / 471.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007618/0.2773, allocations: 0.6377 MB / 471.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005956/0.2779, allocations: 120.7 kB / 472 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008336/0.2862, allocations: 5.947 MB / 477.9 MB, free: 6.441 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.2866, allocations: 413 kB / 478.3 MB, free: 6.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002596/0.2869, allocations: 93.64 kB / 478.4 MB, free: 5.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003386/0.2872, allocations: 283.3 kB / 478.7 MB, free: 5.641 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2872, allocations: 0 / 478.7 MB, free: 5.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05734/0.3445, allocations: 18.58 MB / 497.3 MB, free: 3.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.34, allocations: 3.938 kB / 497.3 MB, free: 3.273 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv. Warning: Get data of variable D3.n.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.031350311997812]