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.002002/0.002002, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002255/0.002255, allocations: 212.4 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002512/0.002512, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3192, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003714/0.3229, allocations: 1.862 MB / 432.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.3249, allocations: 1.134 MB / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.325, allocations: 4 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.3262, allocations: 490.5 kB / 434.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002769/0.3265, allocations: 199.4 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.327, allocations: 159.4 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004341/0.3274, allocations: 223.1 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.943e-05/0.3275, allocations: 13.75 kB / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.3278, allocations: 131.5 kB / 435.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003457/0.3282, allocations: 227.4 kB / 435.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.881e-05/0.3282, allocations: 8 kB / 435.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.3284, allocations: 63.89 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.3286, allocations: 263.3 kB / 435.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002386/0.3288, allocations: 202.4 kB / 436 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009179/0.3297, allocations: 0.7817 MB / 436.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3298, allocations: 0 / 436.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3298, allocations: 0 / 436.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.39e-05/0.3298, allocations: 0 / 436.8 MB, free: 0.918 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.002994/0.3328, allocations: 1.128 MB / 437.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3328, allocations: 20.02 kB / 437.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/0.3329, allocations: 34.75 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.3331, allocations: 96.36 kB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.3344, allocations: 0.6992 MB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.3344, allocations: 4.375 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.3344, allocations: 384 / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.3347, allocations: 115.3 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3347, allocations: 0 / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.3347, allocations: 4 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3347, allocations: 4 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003487/0.3351, allocations: 143.8 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.3363, allocations: 0.7236 MB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002095/0.3365, allocations: 78.62 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.3367, allocations: 76.73 kB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.3367, allocations: 0 / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.3367, allocations: 42.56 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.31e-07/0.3367, allocations: 3.938 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008061/0.3375, allocations: 336.8 kB / 440.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.3376, allocations: 51.41 kB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/0.3393, allocations: 1.409 MB / 441.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.3394, allocations: 25.7 kB / 441.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/0.3397, allocations: 380.4 kB / 442.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.3397, allocations: 11.94 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.989e-05/0.3398, allocations: 29.66 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3399, allocations: 310 kB / 442.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.3401, allocations: 63.94 kB / 442.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3403, allocations: 86.52 kB / 442.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.3406, allocations: 158.4 kB / 442.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3406, allocations: 4 kB / 442.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000566/0.3412, allocations: 265 kB / 443 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3412, allocations: 11.92 kB / 443 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.3412, allocations: 4 kB / 443.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3412, allocations: 0 / 443.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.3414, allocations: 11.98 kB / 443.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3414, allocations: 4 kB / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.3416, allocations: 8.094 kB / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.3416, allocations: 7.984 kB / 443.1 MB, free: 10.38 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.0003398/0.342, allocations: 333.7 kB / 443.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.3421, allocations: 99.31 kB / 443.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005953/0.3427, allocations: 285.6 kB / 443.8 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3427, allocations: 0 / 443.8 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3427, allocations: 4 kB / 443.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3427, allocations: 0 / 443.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005061/0.3433, allocations: 426 kB / 444.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3433, allocations: 0 / 444.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.859e-05/0.3433, allocations: 11.98 kB / 444.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3433, allocations: 3.938 kB / 444.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.3433, allocations: 0 / 444.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.289e-06/0.3434, allocations: 12 kB / 444.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3434, allocations: 3.938 kB / 444.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004982/0.3439, allocations: 319.3 kB / 444.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003891/0.3442, allocations: 155.3 kB / 444.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.305e-05/0.3443, allocations: 7.938 kB / 444.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.3445, allocations: 7.984 kB / 444.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.3445, allocations: 4 kB / 444.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.3446, allocations: 0 / 444.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001332/0.3459, allocations: 1.017 MB / 445.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3459, allocations: 0 / 445.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000334/0.3462, allocations: 67.92 kB / 445.8 MB, free: 7.57 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.0008927/0.3471, allocations: 0.868 MB / 446.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003681/0.3475, allocations: 127.8 kB / 446.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3475, allocations: 4 kB / 446.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.3476, allocations: 51.95 kB / 446.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005702/0.3482, allocations: 115 kB / 447 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.3604, allocations: 8.772 MB / 455.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.3609, allocations: 412.1 kB / 456.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006616/0.3615, allocations: 470 kB / 456.6 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.3619, allocations: 247.4 kB / 456.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3619, allocations: 0 / 456.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0508/0.4127, allocations: 17.34 MB / 474.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.96, allocations: 0 / 474.2 MB, free: 11.21 MB / 382.1 MB " [Timeout remaining time 648] (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/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_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: 14.644489565864205]