Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009928/0.0009929, allocations: 177.3 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.293/1.293, allocations: 225.7 MB / 243.2 MB, free: 8.461 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.0007897/0.0007897, allocations: 97.67 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002493, allocations: 8 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2347, allocations: 50.4 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001596/0.2364, allocations: 1.583 MB / 406.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.2376, allocations: 1.293 MB / 407.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.927e-05/0.2377, allocations: 0 / 407.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008212/0.2385, allocations: 0.4962 MB / 407.9 MB, free: 27.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.2387, allocations: 183 kB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.2391, allocations: 321.8 kB / 408.4 MB, free: 27.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002192/0.2393, allocations: 223.1 kB / 408.6 MB, free: 27.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.32e-05/0.2394, allocations: 24.16 kB / 408.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.2396, allocations: 111.6 kB / 408.8 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.2398, allocations: 207.5 kB / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.2398, allocations: 4 kB / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.2399, allocations: 63.89 kB / 409 MB, free: 26.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.2401, allocations: 267.3 kB / 409.3 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.2402, allocations: 295.6 kB / 409.6 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.2407, allocations: 0.7431 MB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2407, allocations: 0 / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2407, allocations: 0 / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.2407, allocations: 0 / 410.3 MB, free: 25.47 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.001998/0.2427, allocations: 1.077 MB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2428, allocations: 8.031 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.2429, allocations: 91.8 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007464/0.2437, allocations: 0.747 MB / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.2437, allocations: 384 / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.2437, allocations: 384 / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.244, allocations: 133.8 kB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.244, allocations: 0 / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.244, allocations: 0 / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.244, allocations: 4 kB / 412.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.2444, allocations: 151.9 kB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008009/0.2452, allocations: 0.8143 MB / 413.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.2454, allocations: 98.44 kB / 413.5 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.2455, allocations: 80.91 kB / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.2455, allocations: 0 / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.487e-05/0.2456, allocations: 30.56 kB / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 7.52e-07/0.2456, allocations: 3.938 kB / 413.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0007002/0.2463, allocations: 348.4 kB / 413.9 MB, free: 21.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/0.2463, allocations: 51.41 kB / 414 MB, free: 21.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/0.2475, allocations: 1.397 MB / 415.4 MB, free: 20.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.2476, allocations: 33.58 kB / 415.4 MB, free: 20.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.2478, allocations: 388.4 kB / 415.8 MB, free: 19.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.2478, allocations: 7.844 kB / 415.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.2478, allocations: 4 kB / 415.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.822e-05/0.2479, allocations: 306 kB / 416.1 MB, free: 19.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.248, allocations: 75.94 kB / 416.2 MB, free: 19.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.2482, allocations: 94.52 kB / 416.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.2485, allocations: 166.3 kB / 416.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2485, allocations: 4 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004894/0.249, allocations: 276.5 kB / 416.7 MB, free: 18.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.2491, allocations: 4 kB / 416.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2491, allocations: 0 / 416.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.2491, allocations: 4.094 kB / 416.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.2493, allocations: 23.98 kB / 416.7 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.2493, allocations: 4 kB / 416.7 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.2495, allocations: 11.98 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.2495, allocations: 4 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.0002382/0.2498, allocations: 341.6 kB / 417.1 MB, free: 18.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.2499, allocations: 90.86 kB / 417.2 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005082/0.2504, allocations: 293.5 kB / 417.4 MB, free: 18.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2504, allocations: 0 / 417.4 MB, free: 18.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2504, allocations: 0 / 417.4 MB, free: 18.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2504, allocations: 3.984 kB / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003774/0.2508, allocations: 0.5143 MB / 418 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.2508, allocations: 4 kB / 418 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.853e-05/0.2509, allocations: 11.98 kB / 418 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2509, allocations: 0 / 418 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.251, allocations: 4 kB / 418 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.251, allocations: 4 kB / 418 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.251, allocations: 0 / 418 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.2514, allocations: 330.8 kB / 418.3 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002151/0.2516, allocations: 224 kB / 418.5 MB, free: 16.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-05/0.2517, allocations: 3.938 kB / 418.5 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.2518, allocations: 8 kB / 418.5 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.2519, allocations: 11.92 kB / 418.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.2519, allocations: 4 kB / 418.6 MB, free: 16.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009319/0.2529, allocations: 1.005 MB / 419.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2529, allocations: 0 / 419.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002849/0.2532, allocations: 63.98 kB / 419.6 MB, free: 15.81 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001595/0.2533, allocations: 119.2 kB / 419.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003347/0.2537, allocations: 139.9 kB / 419.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2537, allocations: 0 / 419.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.2539, allocations: 59.83 kB / 419.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005306/0.2544, allocations: 101.2 kB / 420 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.2559, allocations: 1.547 MB / 421.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.2563, allocations: 1.001 MB / 422.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.2568, allocations: 478.2 kB / 423 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.955e-05/0.257, allocations: 39.42 kB / 423.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.257, allocations: 0 / 423.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of Templates: time 0.009884/0.2668, allocations: 6.992 MB / 430.1 MB, free: 5.32 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches