Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001616, allocations: 196.7 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.408/1.408, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007997/0.0007999, allocations: 98.78 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.0002542, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2099, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002045/0.212, allocations: 2.452 MB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008841/0.2129, allocations: 0.6656 MB / 410.6 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.213, allocations: 17.66 kB / 410.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.2132, allocations: 43.62 kB / 410.7 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.2133, allocations: 68.8 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.2135, allocations: 80.34 kB / 410.8 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.2137, allocations: 338.6 kB / 411.1 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.2139, allocations: 110.5 kB / 411.3 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.2141, allocations: 123.6 kB / 411.4 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.2143, allocations: 127.4 kB / 411.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.2143, allocations: 16 kB / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.851e-05/0.2144, allocations: 24 kB / 411.5 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.054e-05/0.2144, allocations: 51.77 kB / 411.6 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.293e-05/0.2144, allocations: 81.52 kB / 411.7 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.2146, allocations: 276.2 kB / 411.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2146, allocations: 0 / 411.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2146, allocations: 4 kB / 411.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2146, allocations: 0 / 411.9 MB, free: 23.38 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006554/0.2153, allocations: 0.5574 MB / 412.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.2153, allocations: 12.03 kB / 412.5 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.2154, allocations: 35.61 kB / 412.5 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.2156, allocations: 254.5 kB / 412.8 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.2156, allocations: 24.66 kB / 412.8 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.22e-05/0.2157, allocations: 35.91 kB / 412.9 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004422/0.2161, allocations: 278 kB / 413.1 MB, free: 22.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.2162, allocations: 0 / 413.1 MB, free: 22.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.2162, allocations: 16 kB / 413.1 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.2162, allocations: 8 kB / 413.2 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003743/0.2166, allocations: 218.4 kB / 413.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.2177, allocations: 0.9791 MB / 414.3 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.218, allocations: 158.6 kB / 414.5 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.2182, allocations: 84.91 kB / 414.6 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.2182, allocations: 8 kB / 414.6 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.2182, allocations: 34.5 kB / 414.6 MB, free: 20.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.2182, allocations: 3.938 kB / 414.6 MB, free: 20.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004826/0.2187, allocations: 236.2 kB / 414.9 MB, free: 20.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.139e-05/0.2187, allocations: 55.41 kB / 414.9 MB, free: 20.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.2189, allocations: 214.6 kB / 415.1 MB, free: 19.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.2189, allocations: 33.7 kB / 415.2 MB, free: 19.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.219, allocations: 180.1 kB / 415.3 MB, free: 19.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.219, allocations: 78.92 kB / 415.4 MB, free: 19.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.219, allocations: 4 kB / 415.4 MB, free: 19.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.521e-05/0.2191, allocations: 334.8 kB / 415.7 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.2192, allocations: 63.97 kB / 415.8 MB, free: 19.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.2194, allocations: 126.9 kB / 415.9 MB, free: 19.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.2195, allocations: 79.97 kB / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2195, allocations: 0 / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003737/0.2199, allocations: 251.9 kB / 416.2 MB, free: 18.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.2199, allocations: 4 kB / 416.3 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.22, allocations: 8 kB / 416.3 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.22, allocations: 7.891 kB / 416.3 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.2202, allocations: 68.09 kB / 416.3 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.2202, allocations: 11.92 kB / 416.3 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.2204, allocations: 27.73 kB / 416.4 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.2204, allocations: 8 kB / 416.4 MB, free: 18.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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): 29 * 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 9.32e-05/0.2205, allocations: 137.8 kB / 416.5 MB, free: 18.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.2206, allocations: 19.81 kB / 416.5 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003527/0.2209, allocations: 209.5 kB / 416.7 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.2209, allocations: 7.938 kB / 416.7 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2209, allocations: 0 / 416.7 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2209, allocations: 0 / 416.7 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002639/0.2212, allocations: 317.4 kB / 417.1 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2212, allocations: 0 / 417.1 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.2215, allocations: 59.91 kB / 417.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2215, allocations: 0 / 417.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.2215, allocations: 4 kB / 417.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2215, allocations: 0 / 417.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2215, allocations: 0 / 417.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005013/0.222, allocations: 367 kB / 417.5 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.199e-05/0.2221, allocations: 104.8 kB / 417.6 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.2221, allocations: 4.062 kB / 417.6 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.2223, allocations: 23.98 kB / 417.6 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.252e-05/0.2223, allocations: 11.98 kB / 417.6 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.2224, allocations: 4 kB / 417.6 MB, free: 17.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.543e-05/0.2225, allocations: 152.5 kB / 417.8 MB, free: 17.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2225, allocations: 0 / 417.8 MB, free: 17.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002784/0.2227, allocations: 75.69 kB / 417.8 MB, free: 17.11 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0001015/0.2229, allocations: 108.2 kB / 418 MB, free: 17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003318/0.2232, allocations: 171.1 kB / 418.1 MB, free: 16.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2232, allocations: 4 kB / 418.1 MB, free: 16.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.2233, allocations: 80.16 kB / 418.2 MB, free: 16.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.2237, allocations: 31.92 kB / 418.2 MB, free: 16.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.2248, allocations: 1.063 MB / 419.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.225, allocations: 0.7637 MB / 420.1 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.669e-05/0.2251, allocations: 23.42 kB / 420.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2251, allocations: 0 / 420.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of Templates: time 0.003496/0.2286, allocations: 2.845 MB / 422.9 MB, free: 11.98 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches