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.001483/0.001483, allocations: 105.1 kB / 21.22 MB, free: 0.6523 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.001662/0.001662, allocations: 211.8 kB / 24.51 MB, free: 3.973 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.381/1.381, allocations: 230.6 MB / 258.3 MB, free: 7.809 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 47.92 kB / 378.5 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2423, allocations: 53.37 MB / 431.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005944/0.2483, allocations: 4.578 MB / 436.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008461/0.2567, allocations: 5.845 MB / 442.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000646/0.2574, allocations: 67.31 kB / 442.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.2586, allocations: 464.9 kB / 442.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002095/0.2607, allocations: 0.8381 MB / 443.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.2618, allocations: 446.3 kB / 444.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.2649, allocations: 2.044 MB / 446.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.2651, allocations: 103.2 kB / 446.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000535/0.2656, allocations: 390.2 kB / 446.6 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004124/0.2661, allocations: 353.7 kB / 446.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.434e-05/0.2661, allocations: 35.94 kB / 447 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001001/0.2671, allocations: 479.6 kB / 447.4 MB, free: 7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.2672, allocations: 115.2 kB / 447.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003281/0.2676, allocations: 321.8 kB / 447.9 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001515/0.2691, allocations: 1.303 MB / 449.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2691, allocations: 0 / 449.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2691, allocations: 0 / 449.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.2691, allocations: 0 / 449.2 MB, free: 5.262 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.00187/0.271, allocations: 1.425 MB / 450.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.271, allocations: 15.97 kB / 450.6 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.599e-05/0.271, allocations: 8.438 kB / 450.6 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.224e-05/0.2711, allocations: 62.53 kB / 450.7 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003057/0.2714, allocations: 147.1 kB / 450.8 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.2724, allocations: 0.76 MB / 451.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.2725, allocations: 16.44 kB / 451.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.2725, allocations: 27.95 kB / 451.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005792/0.2731, allocations: 366.7 kB / 452 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.2731, allocations: 0 / 452 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.2732, allocations: 12 kB / 452 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.2732, allocations: 15.92 kB / 452 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004352/0.2736, allocations: 255.6 kB / 452.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.2753, allocations: 1.011 MB / 453.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.2757, allocations: 249 kB / 453.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004928/0.2762, allocations: 299.3 kB / 453.8 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007382/0.277, allocations: 165.4 kB / 454 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.277, allocations: 42.5 kB / 454 MB, free: 236 kB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.154e-06/0.277, allocations: 0 / 454 MB, free: 236 kB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003011/0.28, allocations: 1.493 MB / 455.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.482e-05/0.2801, allocations: 114.8 kB / 455.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.2811, allocations: 0.9339 MB / 456.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.2812, allocations: 33.7 kB / 456.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/0.2815, allocations: 357.8 kB / 456.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.2816, allocations: 134.8 kB / 457.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/0.2818, allocations: 121.7 kB / 457.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.2819, allocations: 325.9 kB / 457.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.2822, allocations: 154.3 kB / 457.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.2825, allocations: 235.8 kB / 457.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.2839, allocations: 0.7491 MB / 458.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2839, allocations: 0 / 458.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009948/0.2849, allocations: 0.5916 MB / 459.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.285, allocations: 37.7 kB / 459.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/0.285, allocations: 15.98 kB / 459.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002263/0.2852, allocations: 73.56 kB / 459.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.2855, allocations: 47.97 kB / 459.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00264/0.2881, allocations: 3.113 MB / 462.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003179/0.2884, allocations: 12.03 kB / 462.5 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/0.2885, allocations: 16 kB / 462.5 MB, free: 7.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.000413/0.2889, allocations: 268 kB / 462.8 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.289, allocations: 127.2 kB / 462.9 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.2903, allocations: 0.7092 MB / 463.6 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.2903, allocations: 4 kB / 463.6 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2904, allocations: 0 / 463.6 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2904, allocations: 4.047 kB / 463.6 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007139/0.2911, allocations: 0.5566 MB / 464.2 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.263e-05/0.2911, allocations: 12 kB / 464.2 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.2913, allocations: 35.97 kB / 464.2 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001914/0.2915, allocations: 65.62 kB / 464.3 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.168e-05/0.2915, allocations: 23.98 kB / 464.3 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/0.294, allocations: 3.105 MB / 467.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.294, allocations: 0 / 467.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.2955, allocations: 0.9447 MB / 468.4 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000385/0.2959, allocations: 193 kB / 468.6 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.792e-05/0.296, allocations: 12 kB / 468.6 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002641/0.2962, allocations: 11.92 kB / 468.6 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.2963, allocations: 35.95 kB / 468.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/0.2964, allocations: 16.06 kB / 468.6 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007998/0.2972, allocations: 0.6334 MB / 469.3 MB, free: 152 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2972, allocations: 3.938 kB / 469.3 MB, free: 148 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008063/0.298, allocations: 227.6 kB / 469.5 MB, free: 15.92 MB / 382.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.002228/0.3002, allocations: 1.686 MB / 471.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.3015, allocations: 0.8158 MB / 472 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3015, allocations: 0 / 472 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007624/0.3022, allocations: 0.6416 MB / 472.6 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006411/0.3029, allocations: 124.8 kB / 472.8 MB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008063/0.3109, allocations: 5.941 MB / 478.7 MB, free: 6.324 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.3114, allocations: 413 kB / 479.1 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002937/0.3117, allocations: 93.64 kB / 479.2 MB, free: 5.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/0.312, allocations: 283.3 kB / 479.5 MB, free: 5.52 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.312, allocations: 0 / 479.5 MB, free: 5.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05196/0.364, allocations: 18.23 MB / 497.7 MB, free: 3.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.09, allocations: 0 / 497.7 MB, free: 3.523 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.885732694994658]