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.001113/0.001114, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.442/1.442, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008554/0.0008555, allocations: 93.88 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003296, allocations: 4 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2919, allocations: 50.39 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1237/0.4157, allocations: 82.98 MB / 484.5 MB, free: 13.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.416, allocations: 75.89 kB / 484.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.4545, allocations: 16.28 MB / 0.4891 GB, free: 12.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.4545, allocations: 0 / 0.4891 GB, free: 12.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.26e-05/0.4546, allocations: 31.98 kB / 0.4891 GB, free: 12.79 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.001739/0.4564, allocations: 1.122 MB / 0.4902 GB, free: 11.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.4564, allocations: 16.02 kB / 0.4902 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.4566, allocations: 130.3 kB / 0.4904 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000902/0.4575, allocations: 0.5472 MB / 0.4909 GB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.4576, allocations: 74 kB / 0.491 GB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.4577, allocations: 104 kB / 0.4911 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.4593, allocations: 1.015 MB / 0.4921 GB, free: 9.566 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/0.4594, allocations: 11.92 kB / 0.4921 GB, free: 9.555 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.099e-05/0.4595, allocations: 44 kB / 0.4921 GB, free: 9.512 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.56e-05/0.4595, allocations: 28 kB / 0.4921 GB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.4606, allocations: 0.5539 MB / 0.4927 GB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005141/0.4657, allocations: 5.54 MB / 0.4981 GB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006078/0.4663, allocations: 235.4 kB / 0.4983 GB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001953/0.4666, allocations: 93.09 kB / 0.4984 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.4666, allocations: 30.81 kB / 0.4984 GB, free: 2.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 3.657e-06/0.4666, allocations: 0 / 0.4984 GB, free: 2.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=38): time 0.003642/0.4703, allocations: 1.719 MB / 0.5001 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.4703, allocations: 85.28 kB / 0.5002 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.4709, allocations: 0.5466 MB / 0.5007 GB, free: 236 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.4709, allocations: 29.7 kB / 0.5007 GB, free: 200 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.232/0.7029, allocations: 0.5928 MB / 0.5013 GB, free: 94.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.7032, allocations: 142.3 kB / 0.5015 GB, free: 94.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.7032, allocations: 15.09 kB / 0.5015 GB, free: 94.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.7034, allocations: 387.9 kB / 0.5018 GB, free: 94.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004388/0.7039, allocations: 158.4 kB / 0.502 GB, free: 94.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004997/0.7044, allocations: 0.494 MB / 0.5025 GB, free: 93.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.7048, allocations: 236.5 kB / 0.5027 GB, free: 93.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.7048, allocations: 3.094 kB / 0.5027 GB, free: 93.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00147/0.7063, allocations: 0.7142 MB / 0.5034 GB, free: 93.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.7064, allocations: 10.02 kB / 0.5034 GB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.7064, allocations: 12.38 kB / 0.5034 GB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.448e-05/0.7064, allocations: 23.16 kB / 0.5034 GB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006636/0.7071, allocations: 196.8 kB / 0.5036 GB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-05/0.7071, allocations: 23.59 kB / 0.5037 GB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/0.7076, allocations: 33.64 kB / 0.5037 GB, free: 93.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/0.7076, allocations: 40.17 kB / 0.5037 GB, free: 93.64 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 (94): * Single equations (assignments): 94 * 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.0003982/0.708, allocations: 233.9 kB / 0.504 GB, free: 93.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.7082, allocations: 74.53 kB / 0.504 GB, free: 93.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001522/0.7083, allocations: 75.47 kB / 0.5041 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.7084, allocations: 4.125 kB / 0.5041 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.7084, allocations: 4.953 kB / 0.5041 GB, free: 93.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.7084, allocations: 2.734 kB / 0.5041 GB, free: 93.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002377/0.7108, allocations: 1.307 MB / 0.5054 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.7108, allocations: 1.312 kB / 0.5054 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.7113, allocations: 107.7 kB / 0.5055 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.7113, allocations: 1.438 kB / 0.5055 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.7113, allocations: 9.312 kB / 0.5055 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.7113, allocations: 5.297 kB / 0.5055 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.7114, allocations: 1.188 kB / 0.5055 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.7125, allocations: 0.7157 MB / 0.5062 GB, free: 92.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.7126, allocations: 139.3 kB / 0.5063 GB, free: 92.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.315e-05/0.7127, allocations: 8.812 kB / 0.5063 GB, free: 92.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.7129, allocations: 33.33 kB / 0.5064 GB, free: 92.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.07e-05/0.713, allocations: 25.52 kB / 0.5064 GB, free: 92.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.713, allocations: 14.17 kB / 0.5064 GB, free: 92.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004094/0.7135, allocations: 418.5 kB / 0.5068 GB, free: 92.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7135, allocations: 0 / 0.5068 GB, free: 92.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007487/0.7142, allocations: 141.8 kB / 0.5069 GB, free: 92.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * 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.0001757/0.7144, allocations: 117.2 kB / 0.5071 GB, free: 92.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007166/0.7151, allocations: 440.8 kB / 0.5075 GB, free: 92.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7151, allocations: 320 / 0.5075 GB, free: 92.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.7154, allocations: 163.6 kB / 0.5076 GB, free: 92.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.7157, allocations: 67.38 kB / 0.5077 GB, free: 92.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.7182, allocations: 2.05 MB / 0.5097 GB, free: 91.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.7186, allocations: 1.018 MB / 0.5107 GB, free: 90.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002764/0.7189, allocations: 95.31 kB / 0.5108 GB, free: 90.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.719, allocations: 66.14 kB / 0.5109 GB, free: 90.43 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.719, allocations: 0 / 0.5109 GB, free: 90.43 MB / 378.7 MB Notification: Performance of Templates: time 0.008846/0.7278, allocations: 4.508 MB / 0.5153 GB, free: 90.15 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/jenkins/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