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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 103.8 kB / 16.92 MB, free: 5.855 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 51.52 kB / 300.6 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1712, allocations: 49.44 MB / 350 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.01261/0.1838, allocations: 5.37 MB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006373/0.1903, allocations: 1.434 MB / 356.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001976/0.1923, allocations: 27.88 kB / 356.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.1934, allocations: 213.8 kB / 357.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.1951, allocations: 198 kB / 357.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.1968, allocations: 391.4 kB / 357.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002539/0.1993, allocations: 1.115 MB / 358.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.2008, allocations: 488.2 kB / 359.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.202, allocations: 402.2 kB / 359.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000797/0.2028, allocations: 421.6 kB / 360.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002156/0.2031, allocations: 84 kB / 360.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003766/0.2035, allocations: 100 kB / 360.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000312/0.2038, allocations: 219 kB / 360.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009056/0.2047, allocations: 0.4931 MB / 360.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002222/0.207, allocations: 1.121 MB / 362.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.207, allocations: 0 / 362.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.429e-06/0.207, allocations: 0 / 362.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.118e-05/0.2071, allocations: 4 kB / 362.1 MB, free: 8.246 MB / 302.1 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.003515/0.2106, allocations: 1.313 MB / 363.4 MB, free: 6.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.019e-05/0.2107, allocations: 11.89 kB / 363.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003101/0.211, allocations: 126.4 kB / 363.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.2125, allocations: 0.6146 MB / 364.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.2127, allocations: 81.88 kB / 364.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002156/0.2129, allocations: 96 kB / 364.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00315/0.2161, allocations: 1.023 MB / 365.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.988e-05/0.2161, allocations: 11.94 kB / 365.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.2163, allocations: 40 kB / 365.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.786e-05/0.2163, allocations: 24 kB / 365.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002094/0.2184, allocations: 0.5617 MB / 366 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3019/0.5203, allocations: 5.524 MB / 371.5 MB, free: 22.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009867/0.5214, allocations: 234.3 kB / 371.7 MB, free: 22.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000494/0.5219, allocations: 154.4 kB / 371.9 MB, free: 22.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002571/0.5221, allocations: 89.58 kB / 372 MB, free: 22.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.5222, allocations: 33.97 kB / 372 MB, free: 21.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.036e-06/0.5222, allocations: 2.312 kB / 372 MB, free: 21.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005764/0.528, allocations: 1.711 MB / 373.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.528, allocations: 84.53 kB / 373.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.5292, allocations: 0.6395 MB / 374.4 MB, free: 20.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.5293, allocations: 34.77 kB / 374.5 MB, free: 20.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004338/0.5297, allocations: 0.5982 MB / 375.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.5299, allocations: 146.4 kB / 375.2 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.5301, allocations: 137.6 kB / 375.3 MB, free: 20.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5303, allocations: 383.8 kB / 375.7 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.5307, allocations: 151.3 kB / 375.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006198/0.5313, allocations: 0.4947 MB / 376.4 MB, free: 19.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.5325, allocations: 0.6904 MB / 377 MB, free: 18.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.5325, allocations: 6.688 kB / 377.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001736/0.5342, allocations: 0.7156 MB / 377.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.5343, allocations: 13.31 kB / 377.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.5343, allocations: 16.08 kB / 377.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.306e-05/0.5344, allocations: 16.94 kB / 377.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009962/0.5354, allocations: 194.6 kB / 378 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.989e-05/0.5354, allocations: 27.2 kB / 378 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005978/0.536, allocations: 33.12 kB / 378.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-05/0.5361, allocations: 42.27 kB / 378.1 MB, free: 18.29 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000404/0.5365, allocations: 230.1 kB / 378.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.5367, allocations: 77.94 kB / 378.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001616/0.5369, allocations: 73.73 kB / 378.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.5369, allocations: 9.297 kB / 378.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.5369, allocations: 0 / 378.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.5369, allocations: 3 kB / 378.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003166/0.5401, allocations: 1.326 MB / 379.8 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.5401, allocations: 2.156 kB / 379.8 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007135/0.5409, allocations: 107.3 kB / 379.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-06/0.5409, allocations: 3.625 kB / 379.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.5409, allocations: 10.5 kB / 379.9 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.684e-06/0.5409, allocations: 4.312 kB / 379.9 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.541, allocations: 6.281 kB / 379.9 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.5425, allocations: 0.6983 MB / 380.6 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.5426, allocations: 138.4 kB / 380.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.234e-05/0.5427, allocations: 17.19 kB / 380.8 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004789/0.5432, allocations: 24.03 kB / 380.8 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.5433, allocations: 34.8 kB / 380.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.5434, allocations: 15.28 kB / 380.9 MB, free: 16.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007393/0.5441, allocations: 420.5 kB / 381.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5441, allocations: 0 / 381.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001162/0.5453, allocations: 141.1 kB / 381.4 MB, free: 16.44 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001526/0.5455, allocations: 111.3 kB / 381.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.5467, allocations: 457.2 kB / 382 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5467, allocations: 3.031 kB / 382 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004546/0.5472, allocations: 155.9 kB / 382.1 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008911/0.5481, allocations: 76.41 kB / 382.2 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003456/0.5516, allocations: 1.663 MB / 383.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006357/0.5522, allocations: 1.001 MB / 384.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.5527, allocations: 100 kB / 385 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000208/0.5529, allocations: 64.25 kB / 385 MB, free: 14.36 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5529, allocations: 0 / 385 MB, free: 14.36 MB / 302.1 MB Notification: Performance of Templates: time 0.01499/0.5679, allocations: 4.941 MB / 390 MB, free: 12.98 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches