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.002275/0.002275, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002289/0.002289, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.375/1.375, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001648/0.001648, allocations: 47.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2341, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006371/0.2404, allocations: 5.244 MB / 427.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009288/0.2497, allocations: 6.659 MB / 434.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008802/0.2506, allocations: 59.38 kB / 434.6 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.2521, allocations: 0.5041 MB / 435.1 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002604/0.2547, allocations: 0.8264 MB / 435.9 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.256, allocations: 430.5 kB / 436.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003313/0.2594, allocations: 2.009 MB / 438.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.2596, allocations: 103.2 kB / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006881/0.2603, allocations: 390.2 kB / 438.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006144/0.2609, allocations: 345.6 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.2611, allocations: 28 kB / 439.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.2624, allocations: 495.5 kB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.2626, allocations: 107.2 kB / 439.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005235/0.2631, allocations: 445.1 kB / 440.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.265, allocations: 1.276 MB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2651, allocations: 4 kB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2651, allocations: 3.938 kB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.183e-05/0.2651, allocations: 0 / 441.5 MB, free: 11.64 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.002258/0.2674, allocations: 1.407 MB / 442.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.2674, allocations: 8.031 kB / 442.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.892e-05/0.2675, allocations: 66.53 kB / 443 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.2676, allocations: 135.1 kB / 443.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.2688, allocations: 0.7677 MB / 443.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.2688, allocations: 16.44 kB / 443.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.309e-05/0.2689, allocations: 24 kB / 443.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005302/0.2694, allocations: 319.3 kB / 444.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.2694, allocations: 3.938 kB / 444.2 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.2694, allocations: 4 kB / 444.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.2695, allocations: 11.94 kB / 444.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.2699, allocations: 229.8 kB / 444.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.2716, allocations: 1.057 MB / 445.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004188/0.272, allocations: 226.3 kB / 445.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004687/0.2725, allocations: 269 kB / 446 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007126/0.2732, allocations: 153.4 kB / 446.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.2732, allocations: 38.55 kB / 446.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.873e-06/0.2732, allocations: 0 / 446.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002907/0.2761, allocations: 1.433 MB / 447.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.2762, allocations: 110.8 kB / 447.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.2773, allocations: 0.934 MB / 448.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.2774, allocations: 33.7 kB / 448.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/0.2777, allocations: 361.7 kB / 449.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.2778, allocations: 134.8 kB / 449.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.278, allocations: 117.7 kB / 449.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.2781, allocations: 329.9 kB / 449.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.2784, allocations: 124.6 kB / 449.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.2786, allocations: 164.4 kB / 449.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.28, allocations: 0.7297 MB / 450.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.2801, allocations: 8 kB / 450.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009374/0.281, allocations: 0.5546 MB / 451.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/0.281, allocations: 37.7 kB / 451.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.174e-05/0.2811, allocations: 24.02 kB / 451.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002217/0.2813, allocations: 65.69 kB / 451.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.2815, allocations: 43.91 kB / 451.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.2843, allocations: 3.122 MB / 454.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.2846, allocations: 20.02 kB / 454.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/0.2846, allocations: 20.06 kB / 454.5 MB, free: 14.02 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.0004222/0.285, allocations: 263.8 kB / 454.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.2852, allocations: 131.1 kB / 454.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.2865, allocations: 0.6646 MB / 455.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2865, allocations: 0 / 455.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.2865, allocations: 4 kB / 455.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2865, allocations: 0 / 455.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007166/0.2872, allocations: 0.5839 MB / 456.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.95e-05/0.2872, allocations: 23.92 kB / 456.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.2874, allocations: 39.92 kB / 456.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.2876, allocations: 65.67 kB / 456.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.884e-05/0.2876, allocations: 19.98 kB / 456.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002727/0.2904, allocations: 3.117 MB / 459.4 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2904, allocations: 4.031 kB / 459.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.2918, allocations: 0.8709 MB / 460.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004216/0.2922, allocations: 201 kB / 460.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.293e-05/0.2923, allocations: 8 kB / 460.5 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.2925, allocations: 16 kB / 460.5 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.2926, allocations: 43.94 kB / 460.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.2927, allocations: 12 kB / 460.6 MB, free: 7.629 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000784/0.2935, allocations: 0.6295 MB / 461.2 MB, free: 6.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2935, allocations: 0 / 461.2 MB, free: 6.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008191/0.2943, allocations: 223.6 kB / 461.4 MB, free: 6.777 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.002174/0.2965, allocations: 1.609 MB / 463 MB, free: 5.129 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.2976, allocations: 0.7414 MB / 463.8 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2976, allocations: 4 kB / 463.8 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006821/0.2983, allocations: 0.5931 MB / 464.4 MB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.2989, allocations: 120.7 kB / 464.5 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007809/0.3067, allocations: 5.761 MB / 470.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006502/0.3074, allocations: 1.008 MB / 471.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002728/0.3076, allocations: 89.64 kB / 471.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003259/0.308, allocations: 283.3 kB / 471.6 MB, free: 12.23 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.308, allocations: 4 kB / 471.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05933/0.3673, allocations: 17.63 MB / 489.3 MB, free: 10.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.21, allocations: 0 / 489.3 MB, free: 10.79 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.777268097968772]