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.0008571/0.0008571, allocations: 96.34 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 202.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002252/0.0002254, allocations: 4 kB / 307.7 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 51.53 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002369/0.1054, allocations: 1.616 MB / 360.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.1072, allocations: 1.215 MB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.139e-05/0.1073, allocations: 4 kB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.1084, allocations: 0.495 MB / 362.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.1086, allocations: 179.5 kB / 362.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004195/0.109, allocations: 163.5 kB / 362.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002918/0.1093, allocations: 227.1 kB / 363.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.575e-05/0.1094, allocations: 13.69 kB / 363.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.1096, allocations: 119.6 kB / 363.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.1099, allocations: 207.5 kB / 363.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.1099, allocations: 8 kB / 363.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.1101, allocations: 63.89 kB / 363.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001898/0.1103, allocations: 259.3 kB / 363.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000222/0.1105, allocations: 295.6 kB / 364.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007188/0.1112, allocations: 0.7432 MB / 364.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1112, allocations: 0 / 364.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1112, allocations: 0 / 364.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1112, allocations: 0 / 364.8 MB, free: 7.691 MB / 302.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.002302/0.1136, allocations: 1.077 MB / 365.9 MB, free: 6.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.1136, allocations: 8.031 kB / 365.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.1138, allocations: 91.83 kB / 366 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009171/0.1147, allocations: 0.7547 MB / 366.7 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.1147, allocations: 384 / 366.7 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.1148, allocations: 4.375 kB / 366.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.1151, allocations: 125.9 kB / 366.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.1151, allocations: 4 kB / 366.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.1151, allocations: 0 / 366.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1151, allocations: 0 / 366.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/0.1155, allocations: 155.9 kB / 367 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.1166, allocations: 0.8142 MB / 367.8 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.1168, allocations: 94.45 kB / 367.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.117, allocations: 80.89 kB / 368 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.117, allocations: 4 kB / 368 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.117, allocations: 30.56 kB / 368.1 MB, free: 4.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.117, allocations: 0 / 368.1 MB, free: 4.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008306/0.1179, allocations: 344.3 kB / 368.4 MB, free: 3.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.1179, allocations: 51.41 kB / 368.4 MB, free: 3.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.1196, allocations: 1.409 MB / 369.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.1196, allocations: 25.7 kB / 369.9 MB, free: 2.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003263/0.1199, allocations: 388.4 kB / 370.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.12, allocations: 3.906 kB / 370.3 MB, free: 2.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.12, allocations: 9.719 kB / 370.3 MB, free: 2.008 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1201, allocations: 314 kB / 370.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.1203, allocations: 71.94 kB / 370.6 MB, free: 1.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.1205, allocations: 90.52 kB / 370.7 MB, free: 1.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/0.1209, allocations: 174.3 kB / 370.9 MB, free: 1.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1209, allocations: 0 / 370.9 MB, free: 1.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006181/0.1215, allocations: 280.5 kB / 371.2 MB, free: 1.066 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1216, allocations: 4 kB / 371.2 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1216, allocations: 0 / 371.2 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1216, allocations: 0 / 371.2 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.1218, allocations: 24.08 kB / 371.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.1218, allocations: 0 / 371.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.122, allocations: 15.89 kB / 371.2 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.122, allocations: 0 / 371.2 MB, free: 1.023 MB / 302.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.0003605/0.1224, allocations: 345.6 kB / 371.6 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.1226, allocations: 90.94 kB / 371.6 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006919/0.1233, allocations: 289.5 kB / 371.9 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1233, allocations: 4 kB / 371.9 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1233, allocations: 0 / 371.9 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1233, allocations: 0 / 371.9 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1892/0.3125, allocations: 0.5111 MB / 372.4 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.3126, allocations: 4.031 kB / 372.4 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.3128, allocations: 18.56 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.3128, allocations: 1.031 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/0.3128, allocations: 1.406 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.673e-06/0.3129, allocations: 1.312 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.3129, allocations: 0 / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.3139, allocations: 332.1 kB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000361/0.3143, allocations: 226.2 kB / 373 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.919e-05/0.3143, allocations: 1.547 kB / 373 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.3146, allocations: 12.08 kB / 373 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.3147, allocations: 11.61 kB / 373 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.3147, allocations: 2.062 kB / 373 MB, free: 19.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00178/0.3165, allocations: 1.014 MB / 374.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3165, allocations: 0 / 374.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003979/0.3169, allocations: 65.2 kB / 374.1 MB, free: 19.18 MB / 302.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.0002206/0.3171, allocations: 109.5 kB / 374.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004013/0.3175, allocations: 136.2 kB / 374.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3175, allocations: 3.969 kB / 374.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.3177, allocations: 56.91 kB / 374.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006233/0.3183, allocations: 99.03 kB / 374.5 MB, free: 19.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.3205, allocations: 1.548 MB / 376.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006746/0.3212, allocations: 1.001 MB / 377.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008845/0.3221, allocations: 475.8 kB / 377.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.3222, allocations: 36.53 kB / 377.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3223, allocations: 5.203 kB / 377.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of Templates: time 0.01719/0.3394, allocations: 6.96 MB / 384.5 MB, free: 16.1 MB / 302.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