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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.002184/0.002184, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.463/2.463, allocations: 222.9 MB / 241.8 MB, free: 13.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 47.14 kB / 300.6 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1784, allocations: 49.45 MB / 350.1 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.006026/0.1845, allocations: 2.916 MB / 353 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.1864, allocations: 0.6738 MB / 353.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002988/0.1868, allocations: 8 kB / 353.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.1871, allocations: 47.61 kB / 353.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002916/0.1875, allocations: 71.45 kB / 353.8 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.1879, allocations: 79.86 kB / 353.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005348/0.1884, allocations: 362.5 kB / 354.2 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003535/0.1888, allocations: 136.8 kB / 354.3 MB, free: 300 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.1891, allocations: 131.5 kB / 354.5 MB, free: 168 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.1894, allocations: 147.3 kB / 354.6 MB, free: 20 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.544e-05/0.1894, allocations: 20 kB / 354.6 MB, free: 0 / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.671e-05/0.1895, allocations: 24.05 kB / 354.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.117e-05/0.1896, allocations: 63.66 kB / 354.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002189/0.1899, allocations: 163.2 kB / 354.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.1903, allocations: 283.5 kB / 355.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1903, allocations: 0 / 355.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1903, allocations: 0 / 355.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1903, allocations: 4 kB / 355.2 MB, free: 15.47 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001336/0.1917, allocations: 0.6005 MB / 355.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.1917, allocations: 8.031 kB / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1919, allocations: 36.47 kB / 355.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004178/0.1923, allocations: 263.8 kB / 356.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.1923, allocations: 25.03 kB / 356.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.16e-05/0.1924, allocations: 36.36 kB / 356.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007929/0.1932, allocations: 278.3 kB / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.1933, allocations: 4 kB / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.433e-05/0.1933, allocations: 8 kB / 356.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.1933, allocations: 8 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006988/0.194, allocations: 202.5 kB / 356.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/0.1963, allocations: 0.9945 MB / 357.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.1968, allocations: 160.5 kB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.1971, allocations: 80.81 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.1971, allocations: 7.984 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.1972, allocations: 38.5 kB / 357.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.016e-06/0.1972, allocations: 0 / 357.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008596/0.1981, allocations: 212.6 kB / 358.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.1981, allocations: 51.41 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.1985, allocations: 207 kB / 358.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.1985, allocations: 37.69 kB / 358.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.1987, allocations: 188 kB / 358.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.904e-05/0.1988, allocations: 63.09 kB / 358.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.199, allocations: 49.61 kB / 358.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1992, allocations: 326.8 kB / 359 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.1994, allocations: 63.95 kB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002795/0.1997, allocations: 121.9 kB / 359.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004864/0.2002, allocations: 181.8 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2002, allocations: 3.938 kB / 359.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00069/0.2009, allocations: 241.1 kB / 359.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.201, allocations: 8 kB / 359.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.201, allocations: 4.125 kB / 359.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.201, allocations: 4 kB / 359.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.2014, allocations: 63.95 kB / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.2015, allocations: 7.922 kB / 359.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.2017, allocations: 27.69 kB / 359.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.2018, allocations: 8 kB / 359.7 MB, free: 10.63 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002454/0.202, allocations: 145.7 kB / 359.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.856e-05/0.2021, allocations: 19.81 kB / 359.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006095/0.2027, allocations: 187.4 kB / 360.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.2028, allocations: 0 / 360.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.2028, allocations: 7.984 kB / 360.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2028, allocations: 0 / 360.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005602/0.2034, allocations: 317.3 kB / 360.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.2034, allocations: 3.984 kB / 360.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004176/0.2038, allocations: 55.91 kB / 360.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/0.2038, allocations: 15.97 kB / 360.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.2039, allocations: 4 kB / 360.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2039, allocations: 0 / 360.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2039, allocations: 0 / 360.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008742/0.2048, allocations: 345.8 kB / 360.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.957e-05/0.2049, allocations: 96.98 kB / 360.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.2049, allocations: 7.984 kB / 360.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.2052, allocations: 12 kB / 360.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.015e-05/0.2053, allocations: 19.91 kB / 360.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.2054, allocations: 12.12 kB / 360.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001931/0.2056, allocations: 144.6 kB / 361.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2056, allocations: 0 / 361.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006358/0.2062, allocations: 79.69 kB / 361.2 MB, free: 9.09 MB / 302.1 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 (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.0001698/0.2064, allocations: 99.25 kB / 361.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000624/0.207, allocations: 172.1 kB / 361.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2071, allocations: 0 / 361.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002513/0.2073, allocations: 71.91 kB / 361.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006458/0.208, allocations: 36.17 kB / 361.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.2104, allocations: 0.9785 MB / 362.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005082/0.2109, allocations: 0.7676 MB / 363.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.211, allocations: 19.44 kB / 363.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.211, allocations: 0 / 363.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of Templates: time 0.00877/0.2198, allocations: 2.874 MB / 366.2 MB, free: 4.008 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches