Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009725/0.0009723, allocations: 101.2 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002891, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2162, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.003894/0.2202, allocations: 4.619 MB / 412.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.2227, allocations: 1.416 MB / 413.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009727/0.2237, allocations: 24.88 kB / 413.5 MB, free: 21.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005876/0.2243, allocations: 162.6 kB / 413.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008625/0.2252, allocations: 149.9 kB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009017/0.2261, allocations: 294.8 kB / 414.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.2274, allocations: 1.005 MB / 415.1 MB, free: 20.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006474/0.2281, allocations: 348.6 kB / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005142/0.2286, allocations: 318.5 kB / 415.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004105/0.2291, allocations: 353.9 kB / 416.1 MB, free: 19.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.2292, allocations: 40 kB / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.2294, allocations: 60 kB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.2295, allocations: 155.2 kB / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.2298, allocations: 197.1 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006175/0.2304, allocations: 0.7801 MB / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.2304, allocations: 0 / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2304, allocations: 0 / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.236e-05/0.2305, allocations: 0 / 417.4 MB, free: 17.93 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001695/0.2322, allocations: 1.13 MB / 418.5 MB, free: 16.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.2322, allocations: 8.031 kB / 418.5 MB, free: 16.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000379/0.2326, allocations: 158.4 kB / 418.7 MB, free: 16.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007559/0.2334, allocations: 0.584 MB / 419.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.336e-05/0.2334, allocations: 74 kB / 419.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2335, allocations: 96 kB / 419.4 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.2351, allocations: 1.031 MB / 420.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/0.2351, allocations: 7.938 kB / 420.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.2352, allocations: 47.98 kB / 420.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.2352, allocations: 27.98 kB / 420.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.2362, allocations: 0.5617 MB / 421.1 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003737/0.24, allocations: 5.52 MB / 426.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.2405, allocations: 237 kB / 426.8 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.2408, allocations: 157.9 kB / 427 MB, free: 7.785 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001262/0.2409, allocations: 93.09 kB / 427.1 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.2409, allocations: 46.38 kB / 427.1 MB, free: 7.621 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.736e-06/0.2409, allocations: 0 / 427.1 MB, free: 7.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003426/0.2444, allocations: 1.768 MB / 428.9 MB, free: 5.758 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.2444, allocations: 81.11 kB / 429 MB, free: 5.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000538/0.245, allocations: 0.6255 MB / 429.6 MB, free: 5.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.245, allocations: 45.69 kB / 429.6 MB, free: 4.969 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.2452, allocations: 0.5909 MB / 430.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.2453, allocations: 153.9 kB / 430.4 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.079e-05/0.2453, allocations: 16 kB / 430.4 MB, free: 4.199 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.742e-05/0.2454, allocations: 386.7 kB / 430.8 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.2457, allocations: 161.9 kB / 430.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003546/0.2461, allocations: 0.4932 MB / 431.4 MB, free: 2.996 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.2464, allocations: 235.8 kB / 431.7 MB, free: 2.766 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.892e-06/0.2465, allocations: 4 kB / 431.7 MB, free: 2.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009762/0.2474, allocations: 0.7234 MB / 432.4 MB, free: 2.031 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2475, allocations: 11.94 kB / 432.4 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.2475, allocations: 12 kB / 432.4 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.2475, allocations: 23.98 kB / 432.4 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005754/0.2481, allocations: 199.7 kB / 432.6 MB, free: 1.789 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.2481, allocations: 23.92 kB / 432.7 MB, free: 1.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.2485, allocations: 48.08 kB / 432.7 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.2485, allocations: 36 kB / 432.7 MB, free: 1.684 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002586/0.2488, allocations: 233.4 kB / 433 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.612e-05/0.2489, allocations: 75.06 kB / 433 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.754e-05/0.249, allocations: 74.53 kB / 433.1 MB, free: 1.297 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.249, allocations: 4 kB / 433.1 MB, free: 1.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.249, allocations: 0 / 433.1 MB, free: 1.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.249, allocations: 4 kB / 433.1 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.2508, allocations: 1.358 MB / 434.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2508, allocations: 0 / 434.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005001/0.2513, allocations: 116 kB / 434.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-06/0.2514, allocations: 4 kB / 434.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.2514, allocations: 8 kB / 434.6 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.2514, allocations: 11.92 kB / 434.6 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2514, allocations: 0 / 434.6 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.2524, allocations: 0.7127 MB / 435.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.2526, allocations: 140.2 kB / 435.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.388e-05/0.2527, allocations: 12.03 kB / 435.5 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.253, allocations: 27.98 kB / 435.5 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.2531, allocations: 27.97 kB / 435.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.2531, allocations: 15.98 kB / 435.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000454/0.2535, allocations: 411 kB / 435.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2535, allocations: 0 / 435.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006609/0.2542, allocations: 144 kB / 436.1 MB, free: 14.2 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001353/0.2544, allocations: 107.2 kB / 436.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008767/0.2552, allocations: 456.6 kB / 436.6 MB, free: 13.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2553, allocations: 4.062 kB / 436.6 MB, free: 13.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.2555, allocations: 162.4 kB / 436.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005389/0.2561, allocations: 75.55 kB / 436.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.2593, allocations: 2.133 MB / 439 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005974/0.2599, allocations: 1 MB / 440 MB, free: 10.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.2601, allocations: 75.41 kB / 440.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.2601, allocations: 0 / 440.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of Templates: time 0.01508/0.2752, allocations: 9.048 MB / 449.1 MB, free: 1.078 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches