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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007823/0.0007824, allocations: 92.05 kB / 17.3 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000828/0.000828, allocations: 177.5 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.106/1.106, allocations: 223.3 MB / 242.3 MB, free: 24 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002078/0.0002078, allocations: 9.438 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06762/0.06784, allocations: 50.42 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003809/0.07166, allocations: 4.784 MB / 357.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006644/0.07832, allocations: 6.653 MB / 363.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004347/0.07877, allocations: 35.69 kB / 364 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009976/0.07977, allocations: 478.4 kB / 364.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001495/0.08128, allocations: 0.6678 MB / 365.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007299/0.08202, allocations: 331 kB / 365.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002135/0.08416, allocations: 1.954 MB / 367.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.0844, allocations: 151.5 kB / 367.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003663/0.08477, allocations: 330.2 kB / 367.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.08508, allocations: 329.7 kB / 368.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.058e-05/0.08514, allocations: 16 kB / 368.2 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007735/0.08592, allocations: 479.5 kB / 368.6 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.81e-05/0.08601, allocations: 95.2 kB / 368.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000304/0.08632, allocations: 454.7 kB / 369.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007648/0.08709, allocations: 0.9154 MB / 370.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.373e-06/0.0871, allocations: 4 kB / 370.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.08711, allocations: 0 / 370.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.08713, allocations: 3.938 kB / 370.1 MB, free: 1.977 MB / 302.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.001417/0.08855, allocations: 1.289 MB / 371.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.08859, allocations: 12.03 kB / 371.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.08872, allocations: 130.3 kB / 371.5 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1216/0.2104, allocations: 0.8399 MB / 372.4 MB, free: 24.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.2104, allocations: 17.28 kB / 372.4 MB, free: 24.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.648e-05/0.2105, allocations: 23.69 kB / 372.4 MB, free: 24.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.211, allocations: 309.3 kB / 372.7 MB, free: 24.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.211, allocations: 7.047 kB / 372.7 MB, free: 24.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/0.2111, allocations: 8.375 kB / 372.7 MB, free: 24.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2111, allocations: 6.125 kB / 372.7 MB, free: 24.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003622/0.2115, allocations: 232.5 kB / 373 MB, free: 24.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.213, allocations: 1.128 MB / 374.1 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003679/0.2133, allocations: 250.8 kB / 374.3 MB, free: 24.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004208/0.2138, allocations: 303.3 kB / 374.6 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006593/0.2144, allocations: 0.7567 MB / 375.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.2145, allocations: 32.8 kB / 375.4 MB, free: 23.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.824e-06/0.2145, allocations: 0.9375 kB / 375.4 MB, free: 23.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002425/0.2169, allocations: 1.581 MB / 377 MB, free: 22.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/0.2169, allocations: 109.9 kB / 377.1 MB, free: 22.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009278/0.2179, allocations: 0.9323 MB / 378 MB, free: 21.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.2179, allocations: 32.45 kB / 378.1 MB, free: 21.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.2181, allocations: 355.2 kB / 378.4 MB, free: 21.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.858e-05/0.2182, allocations: 135.3 kB / 378.6 MB, free: 21.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.786e-05/0.2182, allocations: 37.45 kB / 378.6 MB, free: 21.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.788e-05/0.2183, allocations: 321.6 kB / 378.9 MB, free: 21.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.2185, allocations: 130 kB / 379 MB, free: 21.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.2187, allocations: 164.5 kB / 379.2 MB, free: 21.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.2199, allocations: 0.7469 MB / 379.9 MB, free: 20.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2199, allocations: 1.719 kB / 379.9 MB, free: 20.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007637/0.2207, allocations: 0.564 MB / 380.5 MB, free: 20.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.2207, allocations: 40.83 kB / 380.5 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/0.2207, allocations: 16.84 kB / 380.6 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001846/0.2209, allocations: 71.66 kB / 380.6 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.2211, allocations: 51.33 kB / 380.7 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.2226, allocations: 2.993 MB / 383.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.2229, allocations: 14.2 kB / 383.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.223, allocations: 19.91 kB / 383.7 MB, free: 17.46 MB / 302.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.0002697/0.2232, allocations: 261.4 kB / 384 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.2234, allocations: 121.9 kB / 384.1 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.2244, allocations: 0.6733 MB / 384.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2245, allocations: 2.969 kB / 384.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2245, allocations: 5.891 kB / 384.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2245, allocations: 6.938 kB / 384.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006086/0.2251, allocations: 0.6144 MB / 385.4 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-05/0.2251, allocations: 12.61 kB / 385.4 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.2253, allocations: 41.2 kB / 385.4 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001579/0.2255, allocations: 73.3 kB / 385.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.2255, allocations: 14.8 kB / 385.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.2269, allocations: 2.998 MB / 388.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2269, allocations: 1.188 kB / 388.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.228, allocations: 0.867 MB / 389.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002606/0.2283, allocations: 274 kB / 389.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.064e-05/0.2284, allocations: 8.547 kB / 389.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.2286, allocations: 17.03 kB / 389.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.646e-05/0.2287, allocations: 33.72 kB / 389.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.2288, allocations: 19.52 kB / 389.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006748/0.2294, allocations: 0.6256 MB / 390.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2295, allocations: 0 / 390.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.2301, allocations: 225.1 kB / 390.6 MB, free: 12.57 MB / 302.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.0004361/0.2306, allocations: 291.2 kB / 390.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008439/0.2314, allocations: 0.7949 MB / 391.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2315, allocations: 4.062 kB / 391.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004964/0.232, allocations: 0.619 MB / 392.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.2325, allocations: 116.3 kB / 392.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.2344, allocations: 2.021 MB / 394.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.2348, allocations: 0.9991 MB / 395.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.125e-05/0.2349, allocations: 49.42 kB / 395.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2349, allocations: 0 / 395.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of Templates: time 0.01554/0.2504, allocations: 17.23 MB / 412.7 MB, free: 11.38 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) 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) Reference file matches