Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 121.6 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 203.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3443, allocations: 50.54 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005006/0.3493, allocations: 1.907 MB / 411.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.3516, allocations: 1.253 MB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.3518, allocations: 0 / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.3531, allocations: 0.5023 MB / 412.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.3534, allocations: 191.4 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006115/0.354, allocations: 175.3 kB / 413.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004599/0.3545, allocations: 227.1 kB / 413.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.3546, allocations: 29.67 kB / 413.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003276/0.355, allocations: 127.5 kB / 413.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.3553, allocations: 211.5 kB / 413.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.3553, allocations: 8 kB / 413.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.3555, allocations: 55.97 kB / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002965/0.3558, allocations: 263.2 kB / 414.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002566/0.3561, allocations: 277.9 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008997/0.357, allocations: 0.7757 MB / 415.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.357, allocations: 4 kB / 415.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.357, allocations: 0 / 415.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.357, allocations: 0 / 415.2 MB, free: 11.57 MB / 334.1 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.002717/0.3597, allocations: 1.177 MB / 416.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3598, allocations: 8.031 kB / 416.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.36, allocations: 91.89 kB / 416.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.361, allocations: 0.7431 MB / 417.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.361, allocations: 4.375 kB / 417.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.3611, allocations: 4.375 kB / 417.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.3614, allocations: 117.9 kB / 417.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3614, allocations: 0 / 417.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.3614, allocations: 0 / 417.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.3614, allocations: 7.938 kB / 417.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003425/0.3618, allocations: 143.8 kB / 417.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.3628, allocations: 0.8104 MB / 418.3 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.363, allocations: 86.52 kB / 418.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.3632, allocations: 76.89 kB / 418.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.3632, allocations: 3.984 kB / 418.5 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.3633, allocations: 30.56 kB / 418.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 2.545e-06/0.3633, allocations: 0 / 418.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008213/0.3641, allocations: 336.3 kB / 418.8 MB, free: 7.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.3641, allocations: 51.41 kB / 418.9 MB, free: 7.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/0.3657, allocations: 1.405 MB / 420.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.3658, allocations: 29.7 kB / 420.3 MB, free: 6.238 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003064/0.3661, allocations: 388.4 kB / 420.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/0.3661, allocations: 11.91 kB / 420.7 MB, free: 5.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.184e-05/0.3662, allocations: 13.72 kB / 420.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3663, allocations: 318 kB / 421 MB, free: 5.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.3665, allocations: 63.95 kB / 421.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.3667, allocations: 86.52 kB / 421.2 MB, free: 5.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003291/0.3671, allocations: 162.3 kB / 421.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3671, allocations: 0 / 421.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005657/0.3676, allocations: 268.4 kB / 421.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3677, allocations: 4 kB / 421.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3677, allocations: 0 / 421.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.3677, allocations: 12.03 kB / 421.6 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.3679, allocations: 11.98 kB / 421.6 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.3679, allocations: 7.984 kB / 421.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.3681, allocations: 11.92 kB / 421.6 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.3682, allocations: 4 kB / 421.6 MB, free: 4.863 MB / 334.1 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.0003744/0.3685, allocations: 341.6 kB / 422 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.3687, allocations: 86.95 kB / 422.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000604/0.3693, allocations: 269.6 kB / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.3694, allocations: 8.031 kB / 422.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3694, allocations: 0 / 422.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3694, allocations: 0 / 422.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005516/0.3699, allocations: 0.5259 MB / 422.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.37, allocations: 3.984 kB / 422.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.852e-05/0.37, allocations: 11.98 kB / 422.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.37, allocations: 0 / 422.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.3701, allocations: 4 kB / 422.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3701, allocations: 3.938 kB / 422.9 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3701, allocations: 4 kB / 422.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005003/0.3706, allocations: 314.9 kB / 423.2 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002921/0.3709, allocations: 223.9 kB / 423.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.739e-05/0.371, allocations: 4 kB / 423.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.3712, allocations: 7.984 kB / 423.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/0.3712, allocations: 4 kB / 423.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.3712, allocations: 0 / 423.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001202/0.3724, allocations: 1.013 MB / 424.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3724, allocations: 0 / 424.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.3728, allocations: 67.94 kB / 424.5 MB, free: 1.879 MB / 334.1 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.0002126/0.373, allocations: 111.2 kB / 424.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003891/0.3734, allocations: 123.8 kB / 424.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3734, allocations: 192 / 424.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.3736, allocations: 55.97 kB / 424.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.3742, allocations: 109.9 kB / 424.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.376, allocations: 1.357 MB / 426.3 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006792/0.3767, allocations: 1.005 MB / 427.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006321/0.3773, allocations: 470.2 kB / 427.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.3775, allocations: 35.44 kB / 427.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of SimCode: time 2.575e-06/0.3775, allocations: 4 kB / 427.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01408/0.3916, allocations: 7.438 MB / 435.2 MB, free: 7.16 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches