Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 166.6 kB / 17.39 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.631/1.631, allocations: 223.3 MB / 241.4 MB, free: 9.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009501/0.0009501, allocations: 101.1 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000328/0.000328, allocations: 15.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3175, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1103/0.4278, allocations: 83.05 MB / 485.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.4282, allocations: 67.97 kB / 485.9 MB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04222/0.4704, allocations: 16.31 MB / 0.4904 GB, free: 12.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4705, allocations: 0 / 0.4904 GB, free: 12.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001554/0.4706, allocations: 28 kB / 0.4904 GB, free: 12.55 MB / 378.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.002821/0.4735, allocations: 1.118 MB / 0.4915 GB, free: 11.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.4735, allocations: 11.97 kB / 0.4915 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004959/0.4741, allocations: 135.3 kB / 0.4917 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.4755, allocations: 0.5714 MB / 0.4922 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.086e-05/0.4755, allocations: 74.38 kB / 0.4923 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002035/0.4758, allocations: 100.3 kB / 0.4924 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/0.4779, allocations: 1.027 MB / 0.4934 GB, free: 9.293 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.219e-05/0.478, allocations: 8.125 kB / 0.4934 GB, free: 9.285 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.242e-05/0.4781, allocations: 47.94 kB / 0.4934 GB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.966e-05/0.4781, allocations: 28 kB / 0.4935 GB, free: 9.211 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.4797, allocations: 0.5578 MB / 0.494 GB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007025/0.4867, allocations: 5.532 MB / 0.4994 GB, free: 2.836 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.4874, allocations: 237 kB / 0.4996 GB, free: 2.586 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.4877, allocations: 161.9 kB / 0.4998 GB, free: 2.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001972/0.4879, allocations: 89.09 kB / 0.4999 GB, free: 2.316 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.488, allocations: 38.56 kB / 0.4999 GB, free: 2.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 6.181e-06/0.488, allocations: 3.984 kB / 0.4999 GB, free: 2.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.004114/0.4921, allocations: 1.738 MB / 0.5016 GB, free: 436 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/0.4922, allocations: 89.02 kB / 0.5017 GB, free: 328 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2953/0.7875, allocations: 0.6211 MB / 0.5023 GB, free: 94.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.279e-05/0.7876, allocations: 32.14 kB / 0.5023 GB, free: 94.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004972/0.7881, allocations: 0.6024 MB / 0.5029 GB, free: 94.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.7883, allocations: 145.2 kB / 0.5031 GB, free: 94.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.7883, allocations: 14.03 kB / 0.5031 GB, free: 94.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.7885, allocations: 387.5 kB / 0.5034 GB, free: 94.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004179/0.7889, allocations: 159.7 kB / 0.5036 GB, free: 94.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005659/0.7895, allocations: 0.4996 MB / 0.5041 GB, free: 93.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.7905, allocations: 0.7045 MB / 0.5048 GB, free: 93.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.7906, allocations: 7.484 kB / 0.5048 GB, free: 93.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001414/0.792, allocations: 0.7317 MB / 0.5055 GB, free: 93.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.792, allocations: 8.719 kB / 0.5055 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/0.7921, allocations: 13.16 kB / 0.5055 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.021e-05/0.7921, allocations: 16.56 kB / 0.5055 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008245/0.7929, allocations: 204.3 kB / 0.5057 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.435e-05/0.793, allocations: 27.14 kB / 0.5057 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004623/0.7935, allocations: 41.27 kB / 0.5058 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.334e-05/0.7935, allocations: 39.94 kB / 0.5058 GB, free: 93.08 MB / 378.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.0004406/0.794, allocations: 228.9 kB / 0.506 GB, free: 92.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.7941, allocations: 74.19 kB / 0.5061 GB, free: 92.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.7942, allocations: 74.66 kB / 0.5062 GB, free: 92.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.7943, allocations: 9.469 kB / 0.5062 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.7943, allocations: 0 / 0.5062 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.7943, allocations: 6.797 kB / 0.5062 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002486/0.7968, allocations: 1.349 MB / 0.5075 GB, free: 92.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.7968, allocations: 6.906 kB / 0.5075 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004518/0.7973, allocations: 110.7 kB / 0.5076 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.7973, allocations: 3.875 kB / 0.5076 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.7973, allocations: 16.48 kB / 0.5077 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.7973, allocations: 2.844 kB / 0.5077 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.7973, allocations: 7.125 kB / 0.5077 GB, free: 92.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008197/0.7982, allocations: 0.7133 MB / 0.5084 GB, free: 92.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.7983, allocations: 147.1 kB / 0.5085 GB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.406e-05/0.7983, allocations: 15.44 kB / 0.5085 GB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.7987, allocations: 28.62 kB / 0.5085 GB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.7987, allocations: 36.78 kB / 0.5086 GB, free: 91.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.7988, allocations: 10.53 kB / 0.5086 GB, free: 91.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004451/0.7992, allocations: 419.5 kB / 0.509 GB, free: 91.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7992, allocations: 0 / 0.509 GB, free: 91.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007851/0.8, allocations: 139.6 kB / 0.5091 GB, free: 91.88 MB / 378.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.0001641/0.8002, allocations: 119.1 kB / 0.5092 GB, free: 91.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007306/0.8009, allocations: 442.5 kB / 0.5097 GB, free: 91.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.8009, allocations: 0 / 0.5097 GB, free: 91.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002462/0.8012, allocations: 161.9 kB / 0.5098 GB, free: 91.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006471/0.8019, allocations: 78.27 kB / 0.5099 GB, free: 91.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.8046, allocations: 2.098 MB / 0.5119 GB, free: 90.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.805, allocations: 0.9993 MB / 0.5129 GB, free: 89.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003115/0.8053, allocations: 94.17 kB / 0.513 GB, free: 89.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.8055, allocations: 68.62 kB / 0.5131 GB, free: 89.72 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8055, allocations: 0 / 0.5131 GB, free: 89.72 MB / 378.7 MB Notification: Performance of Templates: time 0.009792/0.8153, allocations: 4.55 MB / 0.5175 GB, free: 89.45 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches