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.001802/0.001802, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002331/0.002331, allocations: 206.8 kB / 23.73 MB, free: 4.523 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.418/1.418, 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.001504/0.001504, allocations: 43.92 kB / 377.7 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2601, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003206/0.2633, allocations: 1.851 MB / 432.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.2651, allocations: 1.146 MB / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.813e-05/0.2652, allocations: 0 / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.2662, allocations: 490.6 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.2665, allocations: 203.3 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.2669, allocations: 159.4 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003174/0.2672, allocations: 227 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.666e-05/0.2673, allocations: 17.73 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.2676, allocations: 123.6 kB / 435.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.2678, allocations: 231.4 kB / 435.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.2679, allocations: 8 kB / 435.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.268, allocations: 59.97 kB / 435.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.2682, allocations: 267.2 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.2684, allocations: 198.4 kB / 436 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008191/0.2692, allocations: 0.7856 MB / 436.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2692, allocations: 0 / 436.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2692, allocations: 3.938 kB / 436.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.2693, allocations: 0 / 436.8 MB, free: 0.9102 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.002603/0.2719, allocations: 1.135 MB / 437.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.2719, allocations: 12.03 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.91e-05/0.2719, allocations: 30.75 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001745/0.2721, allocations: 88.38 kB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.2732, allocations: 0.6993 MB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.2732, allocations: 4.375 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.2733, allocations: 4.375 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002769/0.2736, allocations: 116 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.2736, allocations: 3.938 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.2736, allocations: 4 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2736, allocations: 0 / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003476/0.2739, allocations: 143.9 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.275, allocations: 0.7236 MB / 439.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.2752, allocations: 86.52 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.2754, allocations: 68.91 kB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.2754, allocations: 0 / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.2755, allocations: 38.5 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.2755, allocations: 0 / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008054/0.2763, allocations: 336.9 kB / 440.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.2763, allocations: 59.34 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001743/0.2781, allocations: 1.405 MB / 441.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.2781, allocations: 29.64 kB / 441.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003678/0.2785, allocations: 384.4 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.2785, allocations: 7.906 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.254e-05/0.2785, allocations: 25.7 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.2787, allocations: 306 kB / 442.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.2789, allocations: 71.94 kB / 442.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.2791, allocations: 90.45 kB / 442.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.2794, allocations: 154.5 kB / 442.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2794, allocations: 0 / 442.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006008/0.28, allocations: 264.9 kB / 443 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.28, allocations: 8 kB / 443 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.28, allocations: 4.094 kB / 443 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.28, allocations: 0 / 443 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.2802, allocations: 27.86 kB / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.2802, allocations: 0 / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.2804, allocations: 7.984 kB / 443.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.2804, allocations: 8 kB / 443.1 MB, free: 10.37 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.0003632/0.2808, allocations: 337.7 kB / 443.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.281, allocations: 95.38 kB / 443.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006102/0.2816, allocations: 269.4 kB / 443.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.2816, allocations: 7.938 kB / 443.8 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2816, allocations: 0 / 443.8 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2816, allocations: 336 / 443.8 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005351/0.2822, allocations: 434 kB / 444.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2822, allocations: 4 kB / 444.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.885e-05/0.2823, allocations: 15.92 kB / 444.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.2823, allocations: 3.984 kB / 444.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.2823, allocations: 4 kB / 444.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2823, allocations: 3.938 kB / 444.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2823, allocations: 0 / 444.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005183/0.2828, allocations: 315.4 kB / 444.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003975/0.2832, allocations: 155.3 kB / 444.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.2833, allocations: 4 kB / 444.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.2834, allocations: 15.86 kB / 444.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.2835, allocations: 8 kB / 444.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.2835, allocations: 0 / 444.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001336/0.2848, allocations: 1.021 MB / 445.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2848, allocations: 0 / 445.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003729/0.2852, allocations: 60 kB / 445.8 MB, free: 7.566 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.0009419/0.2862, allocations: 0.8641 MB / 446.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000385/0.2865, allocations: 131.8 kB / 446.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2865, allocations: 0 / 446.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.2867, allocations: 47.95 kB / 446.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.2873, allocations: 116.4 kB / 447 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.2993, allocations: 8.784 MB / 455.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.2998, allocations: 400.1 kB / 456.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007111/0.3005, allocations: 474.3 kB / 456.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.3008, allocations: 247.4 kB / 456.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3008, allocations: 0 / 456.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05353/0.3544, allocations: 17.37 MB / 474.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.77, allocations: 7.922 kB / 474.2 MB, free: 11.16 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.360664496023674]