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.001101/0.001101, allocations: 111.1 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.001141, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2482, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002937/0.2512, allocations: 1.9 MB / 411.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.2529, allocations: 1.257 MB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.513e-05/0.253, allocations: 0 / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.2541, allocations: 0.5023 MB / 413.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.2543, allocations: 195.4 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.2547, allocations: 163.4 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003183/0.2551, allocations: 231.1 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.048e-05/0.2552, allocations: 29.62 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.2555, allocations: 127.5 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.2558, allocations: 211.5 kB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.2558, allocations: 8 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.256, allocations: 59.95 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.2562, allocations: 259.3 kB / 414.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002227/0.2564, allocations: 273.9 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007028/0.2571, allocations: 0.7757 MB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2571, allocations: 0 / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2572, allocations: 0 / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.2572, allocations: 4 kB / 415.9 MB, free: 11.61 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.002683/0.2599, allocations: 1.185 MB / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2599, allocations: 8.031 kB / 417.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.2601, allocations: 83.91 kB / 417.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.2612, allocations: 0.7431 MB / 417.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.2612, allocations: 384 / 417.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.2613, allocations: 12.38 kB / 417.9 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.2616, allocations: 117.9 kB / 418 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2616, allocations: 0 / 418 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.2616, allocations: 0 / 418 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.2616, allocations: 7.984 kB / 418 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003503/0.262, allocations: 151.7 kB / 418.2 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.2631, allocations: 0.8104 MB / 419 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.2633, allocations: 86.52 kB / 419.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.2635, allocations: 72.91 kB / 419.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.2635, allocations: 0 / 419.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.2635, allocations: 34.55 kB / 419.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.2636, allocations: 0 / 419.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008095/0.2644, allocations: 336.3 kB / 419.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.2644, allocations: 51.41 kB / 419.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.2661, allocations: 1.401 MB / 421 MB, free: 6.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.2661, allocations: 29.7 kB / 421 MB, free: 6.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.2664, allocations: 388.4 kB / 421.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.2665, allocations: 15.88 kB / 421.4 MB, free: 5.867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.596e-05/0.2665, allocations: 17.72 kB / 421.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.772e-05/0.2666, allocations: 306 kB / 421.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.2668, allocations: 75.94 kB / 421.8 MB, free: 5.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.267, allocations: 82.52 kB / 421.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.2674, allocations: 162.4 kB / 422 MB, free: 5.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.2674, allocations: 3.938 kB / 422 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007074/0.2681, allocations: 264.4 kB / 422.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2681, allocations: 4 kB / 422.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2682, allocations: 0 / 422.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.2682, allocations: 4 kB / 422.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.2684, allocations: 16.08 kB / 422.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.2684, allocations: 8 kB / 422.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.2687, allocations: 7.984 kB / 422.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.2687, allocations: 4 kB / 422.3 MB, free: 4.895 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.0003242/0.2691, allocations: 345.5 kB / 422.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.2692, allocations: 86.95 kB / 422.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006285/0.2699, allocations: 273.6 kB / 423 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2699, allocations: 0 / 423 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2699, allocations: 4 kB / 423 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.2703, allocations: 223.9 kB / 423.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.2704, allocations: 3.984 kB / 423.2 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.2706, allocations: 11.94 kB / 423.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/0.2706, allocations: 11.92 kB / 423.3 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004217/0.2711, allocations: 216.8 kB / 423.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005516/0.2716, allocations: 394.1 kB / 423.9 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001567/0.2718, allocations: 55.95 kB / 423.9 MB, free: 3.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001262/0.2731, allocations: 1.013 MB / 424.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of Backend: time 6.91e-07/0.2731, allocations: 0 / 424.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007177/0.2738, allocations: 178.2 kB / 425.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of SimCode: time 0.002179/0.276, allocations: 1.913 MB / 427 MB, free: 68 kB / 334.1 MB Notification: Performance of Templates: time 0.01407/0.2901, allocations: 7.802 MB / 434.8 MB, free: 8.309 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches