Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000948/0.000948, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.371/1.371, allocations: 221.3 MB / 235.5 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008385/0.0008385, allocations: 84.05 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.519e-05/2.522e-05, allocations: 4 kB / 343.8 MB, free: 4.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 50.41 MB / 394.2 MB, free: 1.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2883/0.3986, allocations: 79.33 MB / 473.6 MB, free: 8.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001804/0.3988, allocations: 71.8 kB / 473.6 MB, free: 8.176 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0134/0.4123, allocations: 5.111 MB / 478.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4123, allocations: 4 kB / 478.8 MB, free: 3.047 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.4123, allocations: 8 kB / 478.8 MB, free: 3.039 MB / 346.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.000689/0.413, allocations: 0.5381 MB / 479.3 MB, free: 2.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.413, allocations: 8.031 kB / 479.3 MB, free: 2.449 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.031e-05/0.4131, allocations: 43.52 kB / 479.4 MB, free: 2.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.4134, allocations: 250.6 kB / 479.6 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.4134, allocations: 32.72 kB / 479.6 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.4135, allocations: 32 kB / 479.7 MB, free: 2.059 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004122/0.4139, allocations: 251.7 kB / 479.9 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.4139, allocations: 0 / 479.9 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.414, allocations: 16 kB / 479.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.414, allocations: 12 kB / 479.9 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.4143, allocations: 175.1 kB / 480.1 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.4157, allocations: 1.003 MB / 481.1 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002244/0.416, allocations: 146.6 kB / 481.3 MB, free: 380 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.4161, allocations: 68.84 kB / 481.3 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.4161, allocations: 7.953 kB / 481.3 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.4161, allocations: 30.56 kB / 481.4 MB, free: 260 kB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.603e-06/0.4161, allocations: 4 kB / 481.4 MB, free: 256 kB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002647/0.4164, allocations: 139 kB / 481.5 MB, free: 112 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.4165, allocations: 59.34 kB / 481.6 MB, free: 40 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.4166, allocations: 182 kB / 481.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.4167, allocations: 25.7 kB / 481.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.4168, allocations: 191.8 kB / 481.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.271e-05/0.4168, allocations: 63.09 kB / 482 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.4169, allocations: 8 kB / 482 MB, free: 15.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.417, allocations: 338.8 kB / 482.3 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.921e-05/0.4171, allocations: 48 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.4172, allocations: 102.5 kB / 482.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.4173, allocations: 69.5 kB / 482.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4173, allocations: 0 / 482.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003088/0.4176, allocations: 218.2 kB / 482.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.4177, allocations: 7.953 kB / 482.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.4177, allocations: 0 / 482.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.4177, allocations: 4 kB / 482.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.418, allocations: 63.91 kB / 482.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.418, allocations: 128 / 482.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.4181, allocations: 35.77 kB / 482.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.4182, allocations: 15.94 kB / 482.9 MB, free: 14.64 MB / 362.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 () * 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 6.707e-05/0.4182, allocations: 112.9 kB / 483 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.419e-05/0.4183, allocations: 19.72 kB / 483 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.4186, allocations: 167.8 kB / 483.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.4186, allocations: 0 / 483.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4186, allocations: 11.95 kB / 483.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.4186, allocations: 0 / 483.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003174/0.4189, allocations: 317.3 kB / 483.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4189, allocations: 3.938 kB / 483.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.4192, allocations: 51.97 kB / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.4192, allocations: 0 / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.4193, allocations: 8 kB / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.4193, allocations: 0 / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4193, allocations: 0 / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.4196, allocations: 325.7 kB / 483.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/0.4197, allocations: 88.92 kB / 484 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.4197, allocations: 12.06 kB / 484 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.4199, allocations: 19.98 kB / 484 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.42, allocations: 11.97 kB / 484 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.42, allocations: 7.953 kB / 484 MB, free: 13.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.4201, allocations: 156.4 kB / 484.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4201, allocations: 0 / 484.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002894/0.4204, allocations: 79.69 kB / 484.3 MB, free: 13.19 MB / 362.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 () * 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.00013/0.4206, allocations: 107.7 kB / 484.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002714/0.4208, allocations: 132.3 kB / 484.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4208, allocations: 0 / 484.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.261e-05/0.4209, allocations: 64.17 kB / 484.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.4212, allocations: 33.5 kB / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.4222, allocations: 0.6849 MB / 485.3 MB, free: 12.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.4225, allocations: 0.7716 MB / 486 MB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.284e-05/0.4226, allocations: 18.08 kB / 486.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.4227, allocations: 23.42 kB / 486.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4227, allocations: 4 kB / 486.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of Templates: time 0.00429/0.427, allocations: 1.775 MB / 487.9 MB, free: 9.543 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches