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.001192/0.001192, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001053/0.001053, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9318/0.9318, allocations: 177.1 MB / 204.3 MB, free: 5.727 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.695e-06/2.695e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.403e-05/3.673e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002735/0.002771, allocations: 1.861 MB / 326.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.004281, allocations: 1.144 MB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.279e-05/0.004363, allocations: 0 / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008027/0.005166, allocations: 0.4905 MB / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.005307, allocations: 191.3 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.005623, allocations: 167.2 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002582/0.005881, allocations: 231 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.803e-05/0.005969, allocations: 9.797 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.006185, allocations: 151.6 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.006366, allocations: 215.6 kB / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.006386, allocations: 8 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.006497, allocations: 59.91 kB / 329.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.006639, allocations: 263.3 kB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.833e-05/0.006737, allocations: 143.4 kB / 329.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005324/0.007269, allocations: 0.7358 MB / 330.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.007273, allocations: 0 / 330.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.007274, allocations: 0 / 330.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.007282, allocations: 0 / 330.2 MB, free: 10.29 MB / 298.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.001518/0.0088, allocations: 1.132 MB / 331.3 MB, free: 9.121 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.00884, allocations: 8.031 kB / 331.3 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.516e-05/0.008875, allocations: 34.75 kB / 331.4 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.009009, allocations: 96.31 kB / 331.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006263/0.009635, allocations: 0.7024 MB / 332.2 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.009652, allocations: 4.375 kB / 332.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.009667, allocations: 4.375 kB / 332.2 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.00988, allocations: 118.2 kB / 332.3 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.009887, allocations: 192 / 332.3 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.0099, allocations: 4.125 kB / 332.3 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.009905, allocations: 0 / 332.3 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/0.01011, allocations: 143.9 kB / 332.4 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006702/0.01078, allocations: 0.7081 MB / 333.1 MB, free: 7.211 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.01092, allocations: 90.52 kB / 333.2 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.01102, allocations: 80.83 kB / 333.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.01104, allocations: 0 / 333.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.01106, allocations: 30.56 kB / 333.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.01106, allocations: 0 / 333.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004937/0.01155, allocations: 332.8 kB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.01158, allocations: 51.41 kB / 333.7 MB, free: 6.598 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.01293, allocations: 1.409 MB / 335.1 MB, free: 5.168 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.01294, allocations: 29.7 kB / 335.1 MB, free: 5.133 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.01315, allocations: 388.4 kB / 335.5 MB, free: 4.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.01318, allocations: 7.953 kB / 335.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.01322, allocations: 21.7 kB / 335.6 MB, free: 4.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.735e-05/0.01329, allocations: 306 kB / 335.9 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.01339, allocations: 67.95 kB / 335.9 MB, free: 4.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.858e-05/0.01349, allocations: 82.52 kB / 336 MB, free: 4.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.01368, allocations: 158.4 kB / 336.2 MB, free: 4.086 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.01368, allocations: 4 kB / 336.2 MB, free: 4.082 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000343/0.01403, allocations: 276.8 kB / 336.4 MB, free: 3.805 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.01404, allocations: 8 kB / 336.4 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.01405, allocations: 4.094 kB / 336.4 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.01406, allocations: 0 / 336.4 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.01417, allocations: 15.98 kB / 336.5 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.01418, allocations: 3.938 kB / 336.5 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.345e-05/0.01427, allocations: 15.98 kB / 336.5 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.01428, allocations: 3.984 kB / 336.5 MB, free: 3.754 MB / 298.7 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.0002387/0.01452, allocations: 349.6 kB / 336.8 MB, free: 3.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.01463, allocations: 91.38 kB / 336.9 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000371/0.015, allocations: 281.7 kB / 337.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.015, allocations: 0 / 337.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.01501, allocations: 0 / 337.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.01501, allocations: 0 / 337.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003417/0.01535, allocations: 430 kB / 337.6 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.01536, allocations: 7.938 kB / 337.6 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.0154, allocations: 11.98 kB / 337.6 MB, free: 2.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.0154, allocations: 4 kB / 337.6 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.01541, allocations: 7.984 kB / 337.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01541, allocations: 0 / 337.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.01541, allocations: 0 / 337.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.01571, allocations: 319.3 kB / 337.9 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.0159, allocations: 155.3 kB / 338.1 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.01593, allocations: 4 kB / 338.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.986e-05/0.01602, allocations: 11.98 kB / 338.1 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.874e-05/0.01606, allocations: 3.984 kB / 338.1 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.01607, allocations: 4 kB / 338.1 MB, free: 2.031 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008013/0.01687, allocations: 1.013 MB / 339.1 MB, free: 1.008 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.01687, allocations: 0 / 339.1 MB, free: 1.008 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002236/0.0171, allocations: 60 kB / 339.2 MB, free: 0.9492 MB / 298.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.0006017/0.0177, allocations: 0.8796 MB / 340.1 MB, free: 44 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000239/0.01794, allocations: 124 kB / 340.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01794, allocations: 0 / 340.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.864e-05/0.01803, allocations: 55.89 kB / 340.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.01841, allocations: 107.1 kB / 340.4 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009823/0.02823, allocations: 8.879 MB / 349.2 MB, free: 6.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.02853, allocations: 408.1 kB / 349.6 MB, free: 6.312 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000452/0.02898, allocations: 474 kB / 350.1 MB, free: 5.844 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.0292, allocations: 244.4 kB / 350.3 MB, free: 5.605 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.0292, allocations: 4 kB / 350.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03524/0.06444, allocations: 17.44 MB / 367.8 MB, free: 4.352 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.255/7.319, allocations: 11.14 kB / 367.8 MB, free: 4.344 MB / 330.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.321736664511263]