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.ResonanceCircuits.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008969/0.0008967, allocations: 183.7 kB / 16.71 MB, free: 4.973 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.285/1.285, allocations: 225.7 MB / 243.2 MB, free: 8.504 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.0007203/0.0007202, allocations: 102.3 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002933/0.0002933, allocations: 11.94 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2288, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00346/0.2323, allocations: 4.619 MB / 409.2 MB, free: 26.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.2343, allocations: 1.757 MB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003732/0.2347, allocations: 27.81 kB / 411 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.235, allocations: 163.2 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.2354, allocations: 149.5 kB / 411.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005428/0.2359, allocations: 342.5 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006831/0.2366, allocations: 1.072 MB / 412.7 MB, free: 23.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004451/0.2371, allocations: 434.3 kB / 413.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002933/0.2374, allocations: 318.3 kB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.2376, allocations: 377.5 kB / 413.8 MB, free: 21.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.609e-05/0.2377, allocations: 40 kB / 413.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.2378, allocations: 52 kB / 413.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.064e-05/0.2379, allocations: 167.1 kB / 414 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002409/0.2382, allocations: 466.8 kB / 414.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005362/0.2387, allocations: 1.013 MB / 415.5 MB, free: 20.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.2387, allocations: 0 / 415.5 MB, free: 20.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2387, allocations: 0 / 415.5 MB, free: 20.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2388, allocations: 0 / 415.5 MB, free: 20.24 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001225/0.24, allocations: 1.126 MB / 416.6 MB, free: 19.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.24, allocations: 8.031 kB / 416.6 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.2401, allocations: 126.4 kB / 416.8 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006008/0.2408, allocations: 0.6108 MB / 417.4 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.2408, allocations: 77.88 kB / 417.5 MB, free: 18.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-05/0.2409, allocations: 103.9 kB / 417.6 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.2421, allocations: 1.019 MB / 418.6 MB, free: 16.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.2422, allocations: 7.938 kB / 418.6 MB, free: 16.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.636e-05/0.2422, allocations: 44 kB / 418.6 MB, free: 16.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.2423, allocations: 28 kB / 418.7 MB, free: 16.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008958/0.2432, allocations: 0.5617 MB / 419.2 MB, free: 16.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003067/0.2462, allocations: 5.524 MB / 424.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.2467, allocations: 229 kB / 425 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.247, allocations: 165.9 kB / 425.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001448/0.2471, allocations: 89.03 kB / 425.2 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.2471, allocations: 38.56 kB / 425.3 MB, free: 9.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.514e-06/0.2471, allocations: 0 / 425.3 MB, free: 9.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003086/0.2502, allocations: 1.781 MB / 427 MB, free: 8.047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.527e-05/0.2503, allocations: 88.98 kB / 427.1 MB, free: 7.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004887/0.2508, allocations: 0.6255 MB / 427.7 MB, free: 7.309 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.2508, allocations: 33.7 kB / 427.8 MB, free: 7.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000218/0.251, allocations: 0.5949 MB / 428.4 MB, free: 6.664 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.2511, allocations: 149.9 kB / 428.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.2511, allocations: 16 kB / 428.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.115e-05/0.2512, allocations: 390.7 kB / 428.9 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.2515, allocations: 153.9 kB / 429.1 MB, free: 5.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003459/0.2519, allocations: 0.4971 MB / 429.6 MB, free: 5.305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006195/0.2525, allocations: 0.7142 MB / 430.3 MB, free: 4.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2525, allocations: 4 kB / 430.3 MB, free: 4.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008771/0.2534, allocations: 0.7227 MB / 431 MB, free: 3.695 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.2534, allocations: 8.75 kB / 431 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.2534, allocations: 12 kB / 431 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.2535, allocations: 20 kB / 431 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005499/0.254, allocations: 195.7 kB / 431.2 MB, free: 3.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.254, allocations: 27.81 kB / 431.3 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.2544, allocations: 39.98 kB / 431.3 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.649e-05/0.2544, allocations: 40 kB / 431.3 MB, free: 3.359 MB / 298.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 (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.0002314/0.2546, allocations: 229.5 kB / 431.6 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-05/0.2547, allocations: 82.95 kB / 431.6 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.122e-05/0.2548, allocations: 74.55 kB / 431.7 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2548, allocations: 4 kB / 431.7 MB, free: 2.965 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.2549, allocations: 3.938 kB / 431.7 MB, free: 2.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.2549, allocations: 3.984 kB / 431.7 MB, free: 2.957 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.2564, allocations: 1.356 MB / 433.1 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2564, allocations: 0 / 433.1 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/0.2569, allocations: 107.9 kB / 433.2 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.2569, allocations: 4 kB / 433.2 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.2569, allocations: 16.16 kB / 433.2 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.2569, allocations: 7.938 kB / 433.2 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2569, allocations: 0 / 433.2 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007827/0.2577, allocations: 0.7173 MB / 433.9 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.558e-05/0.2578, allocations: 136.2 kB / 434.1 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.336e-05/0.2579, allocations: 8 kB / 434.1 MB, free: 496 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.2581, allocations: 39.92 kB / 434.1 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.2582, allocations: 35.89 kB / 434.2 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.2582, allocations: 8 kB / 434.2 MB, free: 412 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003519/0.2586, allocations: 419.1 kB / 434.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2586, allocations: 4 kB / 434.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005494/0.2592, allocations: 136 kB / 434.7 MB, free: 15.86 MB / 314.7 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.0001475/0.2593, allocations: 119.2 kB / 434.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007513/0.2601, allocations: 458.1 kB / 435.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2601, allocations: 0 / 435.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002716/0.2604, allocations: 164.1 kB / 435.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006351/0.261, allocations: 76.39 kB / 435.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.264, allocations: 2.203 MB / 437.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.2646, allocations: 1 MB / 438.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003071/0.2649, allocations: 97.94 kB / 438.8 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.2651, allocations: 63.41 kB / 438.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2651, allocations: 0 / 438.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of Templates: time 0.0104/0.2755, allocations: 4.639 MB / 443.5 MB, free: 6.984 MB / 314.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