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.0009496/0.0009496, allocations: 196.2 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 226.5 MB / 244.7 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007571/0.0007574, allocations: 99.39 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002044/0.0002044, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1828, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.003363/0.1862, allocations: 4.615 MB / 412.7 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.188, allocations: 1.424 MB / 414.1 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003578/0.1884, allocations: 24.84 kB / 414.1 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002872/0.1887, allocations: 154.6 kB / 414.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003441/0.1891, allocations: 153.6 kB / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004759/0.1896, allocations: 298.3 kB / 414.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006604/0.1902, allocations: 1.037 MB / 415.7 MB, free: 19.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004343/0.1907, allocations: 426 kB / 416.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003186/0.191, allocations: 318.5 kB / 416.5 MB, free: 19.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.1912, allocations: 349.9 kB / 416.8 MB, free: 18.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.635e-05/0.1913, allocations: 40 kB / 416.8 MB, free: 18.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.1915, allocations: 63.94 kB / 416.9 MB, free: 18.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.174e-05/0.1915, allocations: 155.2 kB / 417.1 MB, free: 18.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.1918, allocations: 447.1 kB / 417.5 MB, free: 18.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004663/0.1922, allocations: 0.7839 MB / 418.3 MB, free: 17.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1923, allocations: 0 / 418.3 MB, free: 17.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1923, allocations: 0 / 418.3 MB, free: 17.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.1923, allocations: 0 / 418.3 MB, free: 17.41 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.001184/0.1935, allocations: 1.122 MB / 419.4 MB, free: 16.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.1935, allocations: 8.031 kB / 419.4 MB, free: 16.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.1938, allocations: 162.4 kB / 419.6 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006145/0.1944, allocations: 0.603 MB / 420.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.1945, allocations: 77.94 kB / 420.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.681e-05/0.1946, allocations: 99.91 kB / 420.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.1958, allocations: 1.034 MB / 421.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/0.1958, allocations: 7.938 kB / 421.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-05/0.1959, allocations: 44 kB / 421.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.1959, allocations: 24 kB / 421.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009406/0.1969, allocations: 0.5617 MB / 422 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003198/0.2001, allocations: 5.52 MB / 427.5 MB, free: 7.645 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005278/0.2006, allocations: 232.9 kB / 427.8 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.2009, allocations: 173.7 kB / 427.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.201, allocations: 85.11 kB / 428 MB, free: 7.121 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.201, allocations: 46.5 kB / 428.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.823e-06/0.201, allocations: 0 / 428.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003165/0.2042, allocations: 1.758 MB / 429.8 MB, free: 5.207 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.2043, allocations: 92.98 kB / 429.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.2048, allocations: 0.6216 MB / 430.5 MB, free: 4.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.2048, allocations: 37.7 kB / 430.6 MB, free: 4.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.205, allocations: 0.6026 MB / 431.2 MB, free: 3.809 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.606e-05/0.2051, allocations: 146 kB / 431.3 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.258e-05/0.2051, allocations: 16 kB / 431.3 MB, free: 3.648 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.538e-05/0.2052, allocations: 382.8 kB / 431.7 MB, free: 3.266 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.2055, allocations: 153.9 kB / 431.9 MB, free: 3.117 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003459/0.2058, allocations: 0.4933 MB / 432.4 MB, free: 2.461 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006557/0.2065, allocations: 0.7153 MB / 433.1 MB, free: 1.586 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.2065, allocations: 4 kB / 433.1 MB, free: 1.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009388/0.2074, allocations: 0.7273 MB / 433.8 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2075, allocations: 8 kB / 433.8 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.2075, allocations: 15.98 kB / 433.8 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.2075, allocations: 20 kB / 433.8 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005601/0.2081, allocations: 199.6 kB / 434 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.2081, allocations: 27.86 kB / 434.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.2084, allocations: 36.09 kB / 434.1 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.2085, allocations: 43.98 kB / 434.1 MB, free: 0.5039 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.000213/0.2087, allocations: 225.5 kB / 434.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.392e-05/0.2088, allocations: 78.97 kB / 434.4 MB, free: 200 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.742e-05/0.2089, allocations: 78.53 kB / 434.5 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.2089, allocations: 4 kB / 434.5 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.2089, allocations: 11.94 kB / 434.5 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2089, allocations: 4 kB / 434.5 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.2109, allocations: 1.346 MB / 435.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.2109, allocations: 4 kB / 435.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004606/0.2114, allocations: 112 kB / 436 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.2114, allocations: 7.938 kB / 436 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.2114, allocations: 12 kB / 436 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/0.2114, allocations: 7.938 kB / 436 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2114, allocations: 7.938 kB / 436 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009601/0.2124, allocations: 0.7088 MB / 436.7 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.2125, allocations: 140.2 kB / 436.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/0.2126, allocations: 8 kB / 436.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.2129, allocations: 39.95 kB / 436.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.783e-05/0.213, allocations: 23.97 kB / 436.9 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.213, allocations: 15.98 kB / 437 MB, free: 13.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004411/0.2134, allocations: 415 kB / 437.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2134, allocations: 0 / 437.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005651/0.214, allocations: 136 kB / 437.5 MB, free: 13.01 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.0001289/0.2142, allocations: 115.1 kB / 437.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007847/0.2149, allocations: 448.3 kB / 438 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.215, allocations: 4.125 kB / 438.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.2152, allocations: 159.8 kB / 438.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00061/0.2159, allocations: 75.55 kB / 438.3 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.2185, allocations: 2.137 MB / 440.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.219, allocations: 1.008 MB / 441.4 MB, free: 9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.2192, allocations: 67.41 kB / 441.5 MB, free: 8.934 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2192, allocations: 0 / 441.5 MB, free: 8.934 MB / 314.7 MB Notification: Performance of Templates: time 0.01192/0.2312, allocations: 9.054 MB / 450.5 MB, free: 15.88 MB / 330.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