Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 169.7 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9832/0.9832, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.664e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002694/0.002721, allocations: 1.927 MB / 275.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.004071, allocations: 1.207 MB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.362e-05/0.004155, allocations: 0 / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008701/0.005025, allocations: 494.3 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.005182, allocations: 199.3 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003093/0.005491, allocations: 167.2 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.005733, allocations: 227 kB / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.125e-05/0.005804, allocations: 9.812 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.006001, allocations: 155.6 kB / 277.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.006196, allocations: 211.6 kB / 277.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.006216, allocations: 8 kB / 277.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.006343, allocations: 67.88 kB / 278 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.006499, allocations: 263.3 kB / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.237e-05/0.006591, allocations: 135.5 kB / 278.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004124/0.007004, allocations: 0.5175 MB / 278.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.007006, allocations: 0 / 278.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.007007, allocations: 0 / 278.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.007012, allocations: 0 / 278.9 MB, free: 11.75 MB / 266.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.001415/0.008427, allocations: 1.261 MB / 280.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.00846, allocations: 8.031 kB / 280.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.008585, allocations: 104.3 kB / 280.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.008973, allocations: 478.2 kB / 280.8 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.008986, allocations: 8.312 kB / 280.8 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.008998, allocations: 8.359 kB / 280.8 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.009108, allocations: 70.91 kB / 280.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.827e-06/0.009112, allocations: 192 / 280.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.00912, allocations: 384 / 280.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.009125, allocations: 7.938 kB / 280.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.062e-05/0.009176, allocations: 19.92 kB / 280.9 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005208/0.009696, allocations: 0.536 MB / 281.4 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.009815, allocations: 55.11 kB / 281.5 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.635e-05/0.009841, allocations: 11.69 kB / 281.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.009853, allocations: 0 / 281.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.009872, allocations: 41.39 kB / 281.5 MB, free: 9.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.009873, allocations: 0 / 281.5 MB, free: 9.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002621/0.01014, allocations: 160.9 kB / 281.7 MB, free: 8.848 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.183e-05/0.01016, allocations: 51.41 kB / 281.7 MB, free: 8.785 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007709/0.01093, allocations: 1.107 MB / 282.8 MB, free: 7.656 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.01094, allocations: 25.7 kB / 282.9 MB, free: 7.625 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002786/0.01122, allocations: 0.511 MB / 283.4 MB, free: 7.109 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.01124, allocations: 11.89 kB / 283.4 MB, free: 7.098 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.01128, allocations: 27.36 kB / 283.4 MB, free: 7.062 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.01137, allocations: 484.4 kB / 283.9 MB, free: 6.582 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.275e-05/0.0114, allocations: 4 kB / 283.9 MB, free: 6.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.246e-05/0.01142, allocations: 15.98 kB / 283.9 MB, free: 6.562 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.255e-05/0.01147, allocations: 27.62 kB / 283.9 MB, free: 6.531 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.01147, allocations: 0 / 283.9 MB, free: 6.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001704/0.01164, allocations: 149.3 kB / 284.1 MB, free: 6.379 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.01166, allocations: 4 kB / 284.1 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.01166, allocations: 3.938 kB / 284.1 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.01167, allocations: 4.031 kB / 284.1 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.953e-05/0.01174, allocations: 11.98 kB / 284.1 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.134e-06/0.01174, allocations: 0 / 284.1 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.01181, allocations: 4 kB / 284.1 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.01182, allocations: 19.91 kB / 284.1 MB, free: 6.332 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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 8.874e-05/0.01191, allocations: 152.6 kB / 284.3 MB, free: 6.172 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.927e-05/0.01201, allocations: 95.42 kB / 284.4 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.0122, allocations: 153.4 kB / 284.5 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.01221, allocations: 7.984 kB / 284.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.01221, allocations: 4 kB / 284.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.01221, allocations: 0 / 284.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.0125, allocations: 365.7 kB / 284.9 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.01251, allocations: 0 / 284.9 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.859e-05/0.01254, allocations: 11.98 kB / 284.9 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.01254, allocations: 0 / 284.9 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.01255, allocations: 8 kB / 284.9 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.01255, allocations: 4 kB / 284.9 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.01255, allocations: 3.938 kB / 284.9 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.01274, allocations: 288.1 kB / 285.2 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.01286, allocations: 131.4 kB / 285.3 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.01289, allocations: 0 / 285.3 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.388e-05/0.01296, allocations: 4 kB / 285.3 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.837e-05/0.01299, allocations: 7.922 kB / 285.3 MB, free: 5.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.013, allocations: 8 kB / 285.3 MB, free: 5.047 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006244/0.01362, allocations: 0.5991 MB / 285.9 MB, free: 4.438 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01362, allocations: 0 / 285.9 MB, free: 4.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001994/0.01382, allocations: 67.94 kB / 286 MB, free: 4.371 MB / 266.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.0001541/0.01397, allocations: 111.2 kB / 286.1 MB, free: 4.254 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.16e-05/0.01407, allocations: 27.67 kB / 286.1 MB, free: 4.223 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01407, allocations: 0 / 286.1 MB, free: 4.223 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.205e-05/0.01411, allocations: 31.59 kB / 286.2 MB, free: 4.188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.01447, allocations: 106.7 kB / 286.3 MB, free: 4.082 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.01562, allocations: 1.093 MB / 287.4 MB, free: 2.953 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.01575, allocations: 197.2 kB / 287.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002907/0.01604, allocations: 374.4 kB / 287.9 MB, free: 2.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.01624, allocations: 170.1 kB / 288.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01624, allocations: 0 / 288.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of Templates: time 0.119/0.1353, allocations: 8.397 MB / 296.5 MB, free: 23.94 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8737077810801566]