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.00143/0.00143, allocations: 119 kB / 17.78 MB, free: 5.23 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.001382/0.001382, allocations: 197.2 kB / 20.73 MB, free: 2.289 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.476/1.476, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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.001571/0.001571, allocations: 51.91 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1115, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.007047/0.1185, allocations: 5.225 MB / 423 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00988/0.1284, allocations: 6.647 MB / 429.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008749/0.1293, allocations: 67.31 kB / 429.7 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.1309, allocations: 0.4969 MB / 430.2 MB, free: 136 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002798/0.1337, allocations: 0.8108 MB / 431 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.135, allocations: 438.4 kB / 431.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003326/0.1383, allocations: 1.997 MB / 433.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.1386, allocations: 107 kB / 433.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006285/0.1393, allocations: 386.2 kB / 433.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005262/0.1398, allocations: 341.7 kB / 434.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.1399, allocations: 32 kB / 434.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.141, allocations: 491.5 kB / 434.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.1412, allocations: 111.3 kB / 434.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004839/0.1416, allocations: 449 kB / 435.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00186/0.1435, allocations: 1.272 MB / 436.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1435, allocations: 0 / 436.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1435, allocations: 0 / 436.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.428e-05/0.1435, allocations: 0 / 436.6 MB, free: 9.711 MB / 366.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.002466/0.146, allocations: 1.486 MB / 438.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1461, allocations: 11.97 kB / 438.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.628e-05/0.1461, allocations: 62.55 kB / 438.1 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.1463, allocations: 139 kB / 438.3 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.1476, allocations: 0.8632 MB / 439.1 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.1476, allocations: 20.44 kB / 439.2 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.1477, allocations: 23.94 kB / 439.2 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005786/0.1483, allocations: 306.6 kB / 439.5 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1483, allocations: 0 / 439.5 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.1483, allocations: 12 kB / 439.5 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1483, allocations: 7.938 kB / 439.5 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/0.1488, allocations: 225.8 kB / 439.7 MB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1507, allocations: 1.122 MB / 440.9 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/0.1512, allocations: 226.4 kB / 441.1 MB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005062/0.1517, allocations: 263.1 kB / 441.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001127/0.1528, allocations: 0.7594 MB / 442.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.1528, allocations: 30.56 kB / 442.1 MB, free: 3.828 MB / 366.1 MB Notification: Performance of pre-optimization done (n=38): time 1.924e-06/0.1528, allocations: 0 / 442.1 MB, free: 3.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.003238/0.1561, allocations: 1.57 MB / 443.7 MB, free: 2.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.1561, allocations: 114.8 kB / 443.8 MB, free: 2.023 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.1573, allocations: 0.9301 MB / 444.7 MB, free: 1.086 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.1573, allocations: 33.7 kB / 444.8 MB, free: 1.047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/0.1577, allocations: 357.7 kB / 445.1 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.1578, allocations: 142.7 kB / 445.3 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.158, allocations: 117.7 kB / 445.4 MB, free: 436 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1581, allocations: 329.9 kB / 445.7 MB, free: 100 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2086/0.3667, allocations: 120.6 kB / 445.8 MB, free: 30.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.3672, allocations: 159.1 kB / 446 MB, free: 30.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.3686, allocations: 0.7292 MB / 446.7 MB, free: 30.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3686, allocations: 0 / 446.7 MB, free: 30.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009865/0.3696, allocations: 0.5616 MB / 447.3 MB, free: 30.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.3696, allocations: 39.58 kB / 447.3 MB, free: 30.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.025e-05/0.3696, allocations: 10.22 kB / 447.3 MB, free: 30.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002125/0.3698, allocations: 72.42 kB / 447.4 MB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.3701, allocations: 47.58 kB / 447.4 MB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.372, allocations: 3.334 MB / 450.8 MB, free: 27.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.3724, allocations: 14.02 kB / 450.8 MB, free: 27.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.637e-05/0.3724, allocations: 21.72 kB / 450.8 MB, free: 27.25 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.0004141/0.3728, allocations: 255.5 kB / 451 MB, free: 27.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.373, allocations: 132.8 kB / 451.2 MB, free: 27.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.3741, allocations: 0.658 MB / 451.8 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3742, allocations: 5.344 kB / 451.8 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3742, allocations: 2.438 kB / 451.8 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3742, allocations: 4.938 kB / 451.8 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005997/0.3748, allocations: 0.6083 MB / 452.4 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/0.3748, allocations: 18.59 kB / 452.5 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.375, allocations: 38.02 kB / 452.5 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.3751, allocations: 70.78 kB / 452.6 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.3752, allocations: 18.03 kB / 452.6 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.3769, allocations: 3.327 MB / 455.9 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3769, allocations: 1.531 kB / 455.9 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.3782, allocations: 0.8524 MB / 456.8 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003485/0.3785, allocations: 282.5 kB / 457 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.128e-05/0.3786, allocations: 8.281 kB / 457.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.3789, allocations: 17.98 kB / 457.1 MB, free: 23.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.379, allocations: 36.3 kB / 457.1 MB, free: 23.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.379, allocations: 18.23 kB / 457.1 MB, free: 23.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008059/0.3798, allocations: 0.6303 MB / 457.8 MB, free: 23.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3798, allocations: 0 / 457.8 MB, free: 23.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008588/0.3807, allocations: 225.8 kB / 458 MB, free: 23.16 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.002079/0.3828, allocations: 1.599 MB / 459.6 MB, free: 22.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.3838, allocations: 0.7504 MB / 460.3 MB, free: 21.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3838, allocations: 0 / 460.3 MB, free: 21.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006142/0.3844, allocations: 0.5884 MB / 460.9 MB, free: 21.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006186/0.385, allocations: 120.4 kB / 461 MB, free: 21.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007881/0.3929, allocations: 5.759 MB / 466.8 MB, free: 18.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004504/0.3934, allocations: 0.9986 MB / 467.8 MB, free: 17.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.3937, allocations: 96.39 kB / 467.9 MB, free: 17.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.3939, allocations: 283.4 kB / 468.2 MB, free: 17.16 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3939, allocations: 0 / 468.2 MB, free: 17.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06566/0.4596, allocations: 17.36 MB / 485.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.13, allocations: 6.328 kB / 485.5 MB, free: 9.473 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.883704151958227]