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.001301/0.001301, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002273/0.002274, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2944, allocations: 50.54 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002952/0.2974, allocations: 1.904 MB / 411.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.2991, allocations: 1.253 MB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.779e-05/0.2992, allocations: 4 kB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009557/0.3002, allocations: 0.5022 MB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.3004, allocations: 187.4 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/0.3008, allocations: 179.4 kB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.3012, allocations: 231.1 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.412e-05/0.3013, allocations: 25.66 kB / 414.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002074/0.3015, allocations: 123.6 kB / 414.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.3017, allocations: 211.5 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.3018, allocations: 8 kB / 414.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.3019, allocations: 63.91 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.3021, allocations: 263.3 kB / 414.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.3023, allocations: 273.9 kB / 415.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006782/0.303, allocations: 0.7758 MB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.303, allocations: 0 / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.303, allocations: 0 / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.3031, allocations: 0 / 415.9 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.002755/0.3058, allocations: 1.174 MB / 417.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3059, allocations: 16.03 kB / 417.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/0.3061, allocations: 87.89 kB / 417.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.3071, allocations: 0.7431 MB / 417.9 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.3071, allocations: 12.3 kB / 417.9 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.3072, allocations: 384 / 417.9 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.3074, allocations: 117.9 kB / 418 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.403e-06/0.3075, allocations: 0 / 418 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.3075, allocations: 4 kB / 418 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3075, allocations: 0 / 418 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.3078, allocations: 147.8 kB / 418.2 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.3089, allocations: 0.8142 MB / 419 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.3091, allocations: 86.47 kB / 419.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.3093, allocations: 76.89 kB / 419.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.3093, allocations: 0 / 419.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.3094, allocations: 34.56 kB / 419.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.3094, allocations: 3.938 kB / 419.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007841/0.3102, allocations: 320.4 kB / 419.5 MB, free: 7.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.3102, allocations: 59.34 kB / 419.6 MB, free: 7.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/0.3117, allocations: 1.409 MB / 421 MB, free: 6.266 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.3118, allocations: 25.7 kB / 421 MB, free: 6.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.3121, allocations: 392.4 kB / 421.4 MB, free: 5.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.3121, allocations: 7.906 kB / 421.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/0.3122, allocations: 25.7 kB / 421.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.3123, allocations: 306 kB / 421.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.3125, allocations: 63.94 kB / 421.8 MB, free: 5.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.3127, allocations: 86.53 kB / 421.8 MB, free: 5.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/0.313, allocations: 166.3 kB / 422 MB, free: 5.176 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.313, allocations: 0 / 422 MB, free: 5.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005393/0.3136, allocations: 268.7 kB / 422.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3136, allocations: 6.969 kB / 422.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3136, allocations: 0 / 422.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.3136, allocations: 0 / 422.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.3138, allocations: 15.98 kB / 422.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3138, allocations: 3.984 kB / 422.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.314, allocations: 12.09 kB / 422.3 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.3141, allocations: 7.969 kB / 422.3 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.0003327/0.3144, allocations: 349.6 kB / 422.7 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.3146, allocations: 82.97 kB / 422.7 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005707/0.3152, allocations: 277.3 kB / 423 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3152, allocations: 0 / 423 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3152, allocations: 0 / 423 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3152, allocations: 3.984 kB / 423 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/0.3157, allocations: 0.5142 MB / 423.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3157, allocations: 3.938 kB / 423.5 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.992e-05/0.3158, allocations: 11.98 kB / 423.5 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3158, allocations: 0 / 423.5 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.3158, allocations: 8 kB / 423.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3158, allocations: 0 / 423.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.3158, allocations: 4 kB / 423.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004809/0.3163, allocations: 314.9 kB / 423.9 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003865/0.3167, allocations: 227.9 kB / 424.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.198e-05/0.3168, allocations: 0 / 424.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.317, allocations: 11.98 kB / 424.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.317, allocations: 4.094 kB / 424.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3171, allocations: 3.984 kB / 424.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001155/0.3182, allocations: 1.013 MB / 425.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3182, allocations: 0 / 425.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.3186, allocations: 71.88 kB / 425.2 MB, free: 1.871 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.0002173/0.3188, allocations: 115.2 kB / 425.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003825/0.3192, allocations: 119.9 kB / 425.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3192, allocations: 3.938 kB / 425.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001583/0.3194, allocations: 55.95 kB / 425.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005724/0.3199, allocations: 104 kB / 425.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.3218, allocations: 1.402 MB / 427 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006113/0.3224, allocations: 1.001 MB / 428 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3225, allocations: 47.42 kB / 428 MB, free: 14.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3225, allocations: 0 / 428 MB, free: 14.96 MB / 350.1 MB Notification: Performance of Templates: time 0.01359/0.3361, allocations: 9.165 MB / 437.2 MB, free: 5.812 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