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.001161/0.001161, allocations: 113.7 kB / 17.69 MB, free: 5.309 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.001049/0.001049, allocations: 191 kB / 18.63 MB, free: 4.375 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.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 55.59 kB / 302.1 MB, free: 5.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08518/0.08623, allocations: 49.44 MB / 351.5 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005707/0.09198, allocations: 5.186 MB / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007701/0.09971, allocations: 6.623 MB / 363.3 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005432/0.1003, allocations: 43.62 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.1015, allocations: 0.5006 MB / 363.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001837/0.1034, allocations: 0.8108 MB / 364.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009687/0.1043, allocations: 438.4 kB / 365.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002532/0.1069, allocations: 1.993 MB / 367.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/0.1072, allocations: 167 kB / 367.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.1076, allocations: 358.2 kB / 367.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.108, allocations: 341.7 kB / 367.9 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-05/0.1081, allocations: 32 kB / 368 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009421/0.109, allocations: 491.5 kB / 368.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.1091, allocations: 111.2 kB / 368.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003801/0.1095, allocations: 453 kB / 369 MB, free: 2.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.1108, allocations: 1.265 MB / 370.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1109, allocations: 4 kB / 370.3 MB, free: 0.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1109, allocations: 0 / 370.3 MB, free: 0.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1109, allocations: 7.938 kB / 370.3 MB, free: 0.9102 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.1445/0.2554, allocations: 1.426 MB / 371.7 MB, free: 26.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2555, allocations: 9.281 kB / 371.7 MB, free: 26.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.2556, allocations: 130.5 kB / 371.8 MB, free: 26.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.2568, allocations: 0.8504 MB / 372.7 MB, free: 26.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.2568, allocations: 21.22 kB / 372.7 MB, free: 26.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.696e-05/0.2569, allocations: 22.75 kB / 372.7 MB, free: 26.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005116/0.2574, allocations: 307.3 kB / 373 MB, free: 25.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2574, allocations: 0 / 373 MB, free: 25.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.2574, allocations: 10.44 kB / 373 MB, free: 25.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2575, allocations: 7.516 kB / 373 MB, free: 25.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004021/0.2579, allocations: 224.2 kB / 373.3 MB, free: 25.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.2595, allocations: 1.125 MB / 374.4 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003564/0.2598, allocations: 242.8 kB / 374.6 MB, free: 25.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000464/0.2603, allocations: 301 kB / 374.9 MB, free: 25.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007468/0.2611, allocations: 0.7568 MB / 375.7 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.2611, allocations: 34 kB / 375.7 MB, free: 24.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.2611, allocations: 0 / 375.7 MB, free: 24.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002489/0.2636, allocations: 1.546 MB / 377.3 MB, free: 23.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.2636, allocations: 111.7 kB / 377.4 MB, free: 23.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009026/0.2645, allocations: 0.9357 MB / 378.3 MB, free: 22.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.2646, allocations: 32.45 kB / 378.3 MB, free: 22.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.2648, allocations: 362.9 kB / 378.7 MB, free: 22.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.531e-05/0.2648, allocations: 128.9 kB / 378.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.265, allocations: 119 kB / 378.9 MB, free: 22.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.133e-05/0.265, allocations: 324.8 kB / 379.2 MB, free: 21.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.2653, allocations: 121.5 kB / 379.4 MB, free: 21.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.2655, allocations: 161.6 kB / 379.5 MB, free: 21.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.2668, allocations: 0.7293 MB / 380.3 MB, free: 21.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2668, allocations: 0.5 kB / 380.3 MB, free: 21.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007965/0.2676, allocations: 0.5667 MB / 380.8 MB, free: 21.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.2676, allocations: 36.89 kB / 380.9 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/0.2677, allocations: 16.22 kB / 380.9 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001948/0.2679, allocations: 68.91 kB / 380.9 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.2681, allocations: 45.91 kB / 381 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.2698, allocations: 3.33 MB / 384.3 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.2701, allocations: 16.22 kB / 384.3 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.2702, allocations: 17.16 kB / 384.3 MB, free: 17.85 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.0002806/0.2705, allocations: 262 kB / 384.6 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.2706, allocations: 124.8 kB / 384.7 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.2717, allocations: 0.6671 MB / 385.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2717, allocations: 3.125 kB / 385.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2718, allocations: 1.906 kB / 385.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2718, allocations: 5.641 kB / 385.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006611/0.2724, allocations: 0.614 MB / 386 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.36e-05/0.2725, allocations: 16.64 kB / 386 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.2726, allocations: 37.2 kB / 386.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.2728, allocations: 68.86 kB / 386.1 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.2729, allocations: 15.34 kB / 386.2 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.2745, allocations: 3.334 MB / 389.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2745, allocations: 0 / 389.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.2757, allocations: 0.856 MB / 390.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.276, allocations: 270.6 kB / 390.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.949e-05/0.2762, allocations: 12.12 kB / 390.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002788/0.2764, allocations: 11.86 kB / 390.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.2765, allocations: 38.17 kB / 390.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.919e-05/0.2766, allocations: 19.91 kB / 390.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000703/0.2773, allocations: 0.6274 MB / 391.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2773, allocations: 5.25 kB / 391.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007669/0.2781, allocations: 226 kB / 391.5 MB, free: 12.64 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.0004498/0.2785, allocations: 295.6 kB / 391.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009533/0.2795, allocations: 0.7888 MB / 392.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2795, allocations: 0 / 392.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005332/0.28, allocations: 0.6127 MB / 393.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005701/0.2806, allocations: 115.7 kB / 393.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.2825, allocations: 1.565 MB / 394.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.2829, allocations: 0.9991 MB / 395.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002397/0.2832, allocations: 96.08 kB / 396 MB, free: 9.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.135e-05/0.2833, allocations: 53.12 kB / 396.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2833, allocations: 0 / 396.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01368/0.2969, allocations: 8.627 MB / 404.7 MB, free: 3.977 MB / 302.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 -s gbode -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