Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 178.4 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 225.7 MB / 243.2 MB, free: 8.5 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008053/0.0008054, allocations: 90.19 kB / 294.4 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003013, allocations: 19.92 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2153, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002359/0.2177, allocations: 2.452 MB / 407 MB, free: 28.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007475/0.2184, allocations: 0.6261 MB / 407.7 MB, free: 28.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.2186, allocations: 11.94 kB / 407.7 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.2187, allocations: 43.62 kB / 407.7 MB, free: 28.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.2189, allocations: 76.62 kB / 407.8 MB, free: 28.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.2191, allocations: 77.81 kB / 407.9 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.2193, allocations: 358.5 kB / 408.2 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.2195, allocations: 139.9 kB / 408.4 MB, free: 27.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.2197, allocations: 115.5 kB / 408.5 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.2198, allocations: 138.1 kB / 408.6 MB, free: 27.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.485e-05/0.2198, allocations: 20 kB / 408.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.701e-05/0.2199, allocations: 16 kB / 408.6 MB, free: 27.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.183e-05/0.2199, allocations: 51.77 kB / 408.7 MB, free: 27.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.2201, allocations: 176.8 kB / 408.9 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.2203, allocations: 352.1 kB / 409.2 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2203, allocations: 0 / 409.2 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2203, allocations: 0 / 409.2 MB, free: 26.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.2203, allocations: 8 kB / 409.2 MB, free: 26.7 MB / 298.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.0006255/0.2209, allocations: 0.5615 MB / 409.8 MB, free: 26.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.221, allocations: 8.031 kB / 409.8 MB, free: 26.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.016e-05/0.221, allocations: 32.56 kB / 409.8 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002057/0.2212, allocations: 267.7 kB / 410.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.2213, allocations: 24.97 kB / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.111e-05/0.2213, allocations: 32.38 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000406/0.2217, allocations: 278.4 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.2217, allocations: 0 / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.2218, allocations: 16 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2218, allocations: 12 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003729/0.2222, allocations: 214.5 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.2232, allocations: 0.983 MB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.2235, allocations: 166.5 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.2236, allocations: 92.89 kB / 411.9 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.2237, allocations: 0 / 411.9 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.64e-05/0.2237, allocations: 30.56 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 9.82e-07/0.2237, allocations: 0 / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.000445/0.2242, allocations: 241.5 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.313e-05/0.2242, allocations: 51.41 kB / 412.2 MB, free: 23.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.2243, allocations: 210.9 kB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.2243, allocations: 25.7 kB / 412.4 MB, free: 23.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.333e-05/0.2244, allocations: 192 kB / 412.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.2244, allocations: 71.08 kB / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-06/0.2245, allocations: 0 / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.77e-05/0.2245, allocations: 334.8 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.2247, allocations: 63.97 kB / 413.1 MB, free: 22.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.2248, allocations: 123.4 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.2251, allocations: 201.8 kB / 413.4 MB, free: 22.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2251, allocations: 0 / 413.4 MB, free: 22.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003606/0.2255, allocations: 253.1 kB / 413.6 MB, free: 21.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.2255, allocations: 4 kB / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2255, allocations: 7.984 kB / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2255, allocations: 0 / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.2258, allocations: 64.03 kB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2258, allocations: 11.94 kB / 413.7 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.2259, allocations: 23.83 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.2259, allocations: 8 kB / 413.7 MB, free: 21.87 MB / 298.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 () * 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 8.893e-05/0.226, allocations: 145.7 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.508e-05/0.2261, allocations: 27.66 kB / 413.9 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003342/0.2264, allocations: 196.8 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2264, allocations: 4 kB / 414.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2264, allocations: 0 / 414.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2264, allocations: 0 / 414.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.2267, allocations: 321.4 kB / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2267, allocations: 0 / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.2269, allocations: 59.84 kB / 414.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.227, allocations: 0 / 414.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.227, allocations: 8 kB / 414.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.227, allocations: 0 / 414.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.227, allocations: 0 / 414.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004745/0.2275, allocations: 361.1 kB / 414.8 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.545e-05/0.2275, allocations: 108.8 kB / 415 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.2276, allocations: 0 / 415 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.2277, allocations: 23.98 kB / 415 MB, free: 20.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.2278, allocations: 15.98 kB / 415 MB, free: 20.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.2278, allocations: 4 kB / 415 MB, free: 20.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.159e-05/0.2279, allocations: 148.5 kB / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2279, allocations: 0 / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002512/0.2281, allocations: 79.69 kB / 415.2 MB, free: 20.3 MB / 298.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 () * 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 9.646e-05/0.2282, allocations: 111.2 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003507/0.2286, allocations: 171.7 kB / 415.5 MB, free: 20.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2286, allocations: 0 / 415.5 MB, free: 20.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.2287, allocations: 80.16 kB / 415.6 MB, free: 19.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.2291, allocations: 35.53 kB / 415.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.2301, allocations: 1.057 MB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.2303, allocations: 0.7676 MB / 417.4 MB, free: 18.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.832e-05/0.2304, allocations: 21.92 kB / 417.5 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.518e-05/0.2304, allocations: 19.44 kB / 417.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2305, allocations: 0 / 417.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of Templates: time 0.003924/0.2344, allocations: 1.847 MB / 419.3 MB, free: 16.14 MB / 298.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