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.000864/0.000864, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001381/0.001381, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8583/0.8583, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.834e-06/1.834e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.607e-05/1.79e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003684/0.003702, allocations: 4.548 MB / 323 MB, free: 1.77 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005292/0.008993, allocations: 5.83 MB / 328.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005976/0.009591, allocations: 63.31 kB / 328.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.01063, allocations: 476.4 kB / 329.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.01221, allocations: 0.8455 MB / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.01351, allocations: 450.2 kB / 330.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002238/0.01575, allocations: 2.051 MB / 332.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.01596, allocations: 95.25 kB / 332.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004979/0.01646, allocations: 0.5026 MB / 333.3 MB, free: 7.422 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.01671, allocations: 239.1 kB / 333.5 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.22e-05/0.01675, allocations: 32 kB / 333.5 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007077/0.01746, allocations: 451.5 kB / 334 MB, free: 6.715 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.01753, allocations: 115.2 kB / 334.1 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.0177, allocations: 231.2 kB / 334.3 MB, free: 6.375 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.01871, allocations: 1.292 MB / 335.6 MB, free: 5.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.01871, allocations: 4 kB / 335.6 MB, free: 5.074 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01871, allocations: 0 / 335.6 MB, free: 5.074 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.01872, allocations: 0 / 335.6 MB, free: 5.074 MB / 298.7 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.001206/0.01993, allocations: 1.396 MB / 337 MB, free: 3.633 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.01997, allocations: 12.92 kB / 337 MB, free: 3.621 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.02002, allocations: 62.53 kB / 337.1 MB, free: 3.551 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.02012, allocations: 139 kB / 337.2 MB, free: 3.414 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007423/0.02086, allocations: 0.7678 MB / 338 MB, free: 2.605 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.02088, allocations: 24.44 kB / 338 MB, free: 2.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.02092, allocations: 23.94 kB / 338 MB, free: 2.559 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.02132, allocations: 371.2 kB / 338.4 MB, free: 2.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.02133, allocations: 0 / 338.4 MB, free: 2.168 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.02135, allocations: 8 kB / 338.4 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.02136, allocations: 4 kB / 338.4 MB, free: 2.156 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.02163, allocations: 259.8 kB / 338.7 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.02273, allocations: 1.015 MB / 339.7 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002881/0.02302, allocations: 252.2 kB / 339.9 MB, free: 0.582 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/0.02333, allocations: 298.4 kB / 340.2 MB, free: 288 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004441/0.02377, allocations: 157.5 kB / 340.4 MB, free: 132 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.0238, allocations: 42.5 kB / 340.4 MB, free: 80 kB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.673e-06/0.0238, allocations: 0 / 340.4 MB, free: 80 kB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001878/0.02568, allocations: 1.491 MB / 341.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.02573, allocations: 110.8 kB / 342 MB, free: 14.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006786/0.02641, allocations: 0.9378 MB / 342.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.02643, allocations: 33.7 kB / 343 MB, free: 13.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.02663, allocations: 357.8 kB / 343.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.041e-05/0.0267, allocations: 134.8 kB / 343.5 MB, free: 12.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.0268, allocations: 113.7 kB / 343.6 MB, free: 12.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.97e-05/0.02688, allocations: 326 kB / 343.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.02704, allocations: 154.3 kB / 344 MB, free: 12.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.02723, allocations: 227.8 kB / 344.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008381/0.02807, allocations: 0.7527 MB / 345 MB, free: 11.28 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.02807, allocations: 0 / 345 MB, free: 11.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005689/0.02864, allocations: 0.5916 MB / 345.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.02867, allocations: 37.69 kB / 345.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.02869, allocations: 19.94 kB / 345.7 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001435/0.02884, allocations: 73.66 kB / 345.7 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.02897, allocations: 47.97 kB / 345.8 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.03062, allocations: 3.109 MB / 348.9 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.03077, allocations: 12.03 kB / 348.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.0308, allocations: 19.98 kB / 348.9 MB, free: 7.113 MB / 314.7 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.0002799/0.03108, allocations: 263 kB / 349.2 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.175e-05/0.03117, allocations: 131.2 kB / 349.3 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000804/0.03198, allocations: 0.7053 MB / 350 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.03198, allocations: 0 / 350 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.03199, allocations: 4 kB / 350 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.03199, allocations: 0 / 350 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.03245, allocations: 0.5488 MB / 350.6 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.03247, allocations: 12 kB / 350.6 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.966e-05/0.03255, allocations: 35.97 kB / 350.6 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.03267, allocations: 65.67 kB / 350.7 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.0327, allocations: 23.94 kB / 350.7 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001592/0.03429, allocations: 3.117 MB / 353.8 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.03429, allocations: 0 / 353.8 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008375/0.03513, allocations: 0.9447 MB / 354.8 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/0.03536, allocations: 201 kB / 354.9 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.03541, allocations: 4 kB / 355 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.03555, allocations: 12 kB / 355 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.03561, allocations: 31.95 kB / 355 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.03564, allocations: 19.98 kB / 355 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006037/0.03624, allocations: 0.6295 MB / 355.6 MB, free: 20 kB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03624, allocations: 0 / 355.6 MB, free: 20 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005613/0.03681, allocations: 223.5 kB / 355.9 MB, free: 15.8 MB / 330.7 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.001354/0.03816, allocations: 1.71 MB / 357.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007537/0.03891, allocations: 0.819 MB / 358.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.03892, allocations: 0 / 358.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000713/0.03963, allocations: 0.626 MB / 359 MB, free: 12.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.04006, allocations: 111.7 kB / 359.1 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005261/0.04532, allocations: 5.939 MB / 365.1 MB, free: 6.207 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.04557, allocations: 421 kB / 365.5 MB, free: 5.766 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.04576, allocations: 93.64 kB / 365.6 MB, free: 5.672 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.04597, allocations: 284.4 kB / 365.8 MB, free: 5.395 MB / 330.7 MB Notification: Performance of SimCode: time 7.71e-07/0.04597, allocations: 0 / 365.8 MB, free: 5.395 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.08159, allocations: 18.59 MB / 384.4 MB, free: 3.012 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.472/7.553, allocations: 5 kB / 384.4 MB, free: 3.012 MB / 346.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.328703679144382]