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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002286/0.002286, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002597/0.002597, allocations: 204.6 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 230.5 MB / 257.4 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 59.91 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2907, allocations: 53.41 MB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003244/0.2939, allocations: 1.855 MB / 433 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.2957, allocations: 1.138 MB / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.004e-05/0.2958, allocations: 0 / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.2968, allocations: 490.5 kB / 434.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.297, allocations: 203.3 kB / 434.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.2974, allocations: 163.4 kB / 435 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003299/0.2978, allocations: 223.1 kB / 435.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.792e-05/0.2979, allocations: 17.73 kB / 435.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002227/0.2981, allocations: 123.6 kB / 435.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.2984, allocations: 227.4 kB / 435.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.659e-05/0.2984, allocations: 8 kB / 435.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.2985, allocations: 67.95 kB / 435.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002163/0.2987, allocations: 263.2 kB / 435.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.2989, allocations: 198.4 kB / 436.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000787/0.2997, allocations: 0.7778 MB / 436.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2997, allocations: 0 / 436.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2997, allocations: 3.938 kB / 436.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2997, allocations: 0 / 436.8 MB, free: 0.707 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.002769/0.3025, allocations: 1.141 MB / 438 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3026, allocations: 11.98 kB / 438 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.622e-05/0.3026, allocations: 30.75 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.3028, allocations: 92.33 kB / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.3038, allocations: 0.6993 MB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3038, allocations: 8.359 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.3039, allocations: 4.312 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000291/0.3042, allocations: 121.7 kB / 438.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.3042, allocations: 0 / 438.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.3042, allocations: 0 / 438.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.3042, allocations: 3.984 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003494/0.3045, allocations: 143.9 kB / 439.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.3056, allocations: 0.7158 MB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.3059, allocations: 90.45 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.306, allocations: 72.91 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.3061, allocations: 0 / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.3061, allocations: 34.55 kB / 440 MB, free: 13.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.362e-06/0.3061, allocations: 0 / 440 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008529/0.3069, allocations: 332.9 kB / 440.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.307, allocations: 51.41 kB / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.3089, allocations: 1.409 MB / 441.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.3089, allocations: 29.7 kB / 441.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003972/0.3093, allocations: 388.4 kB / 442.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.3093, allocations: 11.94 kB / 442.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.217e-05/0.3094, allocations: 17.72 kB / 442.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.3096, allocations: 309.9 kB / 442.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.3098, allocations: 75.94 kB / 442.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.31, allocations: 86.45 kB / 442.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003629/0.3103, allocations: 154.4 kB / 442.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3103, allocations: 4 kB / 442.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006021/0.3109, allocations: 272.9 kB / 443.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3109, allocations: 8 kB / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.311, allocations: 0 / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.311, allocations: 0 / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.3111, allocations: 19.98 kB / 443.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.3112, allocations: 0 / 443.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.3113, allocations: 15.98 kB / 443.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.3114, allocations: 0 / 443.1 MB, free: 10.16 MB / 350.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.0003591/0.3117, allocations: 338.4 kB / 443.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.3119, allocations: 95.42 kB / 443.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006372/0.3125, allocations: 281.6 kB / 443.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3126, allocations: 0 / 443.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3126, allocations: 4 kB / 443.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3126, allocations: 0 / 443.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005714/0.3131, allocations: 433.9 kB / 444.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3131, allocations: 0 / 444.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.839e-05/0.3132, allocations: 11.98 kB / 444.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3132, allocations: 0 / 444.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.3132, allocations: 4 kB / 444.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3132, allocations: 0 / 444.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3132, allocations: 0 / 444.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005324/0.3138, allocations: 327.3 kB / 444.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003968/0.3142, allocations: 155.3 kB / 444.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.661e-05/0.3142, allocations: 7.938 kB / 444.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.3144, allocations: 11.92 kB / 444.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.3145, allocations: 0 / 444.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.3145, allocations: 4 kB / 444.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001319/0.3158, allocations: 1.017 MB / 445.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3158, allocations: 0 / 445.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003391/0.3161, allocations: 64 kB / 445.9 MB, free: 7.359 MB / 350.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.0009937/0.3171, allocations: 0.8681 MB / 446.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003889/0.3175, allocations: 123.8 kB / 446.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3175, allocations: 0 / 446.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001636/0.3177, allocations: 56.14 kB / 446.9 MB, free: 6.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005812/0.3183, allocations: 110.5 kB / 447 MB, free: 6.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/0.3307, allocations: 8.784 MB / 455.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/0.3313, allocations: 400.1 kB / 456.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008724/0.3321, allocations: 478.3 kB / 456.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004055/0.3326, allocations: 247.4 kB / 456.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.174e-06/0.3326, allocations: 0 / 456.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05159/0.3841, allocations: 17.32 MB / 474.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.36, allocations: 21.66 kB / 474.2 MB, free: 10.95 MB / 382.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.122115777339786]