Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 43.94 kB / 366.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1019, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003397/0.1053, allocations: 1.912 MB / 420.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.1072, allocations: 1.242 MB / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.1073, allocations: 0 / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.1084, allocations: 0.5023 MB / 422.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.1086, allocations: 203.4 kB / 422.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.1091, allocations: 171.3 kB / 422.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004058/0.1095, allocations: 223.1 kB / 422.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.815e-05/0.1096, allocations: 17.62 kB / 422.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.1098, allocations: 123.6 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003017/0.1101, allocations: 227.4 kB / 423.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.1101, allocations: 8 kB / 423.1 MB, free: 8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.1103, allocations: 75.89 kB / 423.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002577/0.1105, allocations: 263.3 kB / 423.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.1108, allocations: 281.9 kB / 423.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000824/0.1116, allocations: 0.77 MB / 424.5 MB, free: 6.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1116, allocations: 3.938 kB / 424.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1116, allocations: 0 / 424.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1116, allocations: 0 / 424.5 MB, free: 6.613 MB / 350.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.002587/0.1142, allocations: 1.209 MB / 425.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1142, allocations: 8.031 kB / 425.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.373e-05/0.1143, allocations: 4.188 kB / 425.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.001e-05/0.1143, allocations: 38.69 kB / 425.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.1145, allocations: 96.36 kB / 425.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009821/0.1155, allocations: 0.7518 MB / 426.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1155, allocations: 4.375 kB / 426.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.1155, allocations: 4.375 kB / 426.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.1158, allocations: 121.5 kB / 426.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1158, allocations: 0 / 426.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.1158, allocations: 4 kB / 426.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.496e-06/0.1158, allocations: 0 / 426.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.1162, allocations: 147.9 kB / 426.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.1172, allocations: 0.8181 MB / 427.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.1174, allocations: 82.52 kB / 427.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.1176, allocations: 76.89 kB / 427.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.1176, allocations: 4 kB / 427.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.1176, allocations: 30.56 kB / 427.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1176, allocations: 0 / 427.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008153/0.1185, allocations: 328.9 kB / 428.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.1185, allocations: 59.41 kB / 428.2 MB, free: 2.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/0.1202, allocations: 1.405 MB / 429.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1202, allocations: 29.7 kB / 429.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003439/0.1206, allocations: 384.4 kB / 430 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.1206, allocations: 11.91 kB / 430 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.45e-05/0.1207, allocations: 21.7 kB / 430.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1208, allocations: 313.9 kB / 430.4 MB, free: 456 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.121, allocations: 67.94 kB / 430.4 MB, free: 388 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.1212, allocations: 86.52 kB / 430.5 MB, free: 292 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.1215, allocations: 158.4 kB / 430.7 MB, free: 124 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1215, allocations: 4 kB / 430.7 MB, free: 120 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006103/0.1221, allocations: 273.1 kB / 431 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1222, allocations: 4 kB / 431 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1222, allocations: 4 kB / 431 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1222, allocations: 0 / 431 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.1224, allocations: 11.98 kB / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.1224, allocations: 4 kB / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.1226, allocations: 12.08 kB / 431 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.1226, allocations: 4 kB / 431 MB, free: 15.8 MB / 366.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.000352/0.1229, allocations: 342 kB / 431.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.1231, allocations: 95.38 kB / 431.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006344/0.1238, allocations: 281.5 kB / 431.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1238, allocations: 0 / 431.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1238, allocations: 0 / 431.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1238, allocations: 3.984 kB / 431.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005814/0.1244, allocations: 0.5143 MB / 432.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1244, allocations: 0 / 432.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-05/0.1245, allocations: 11.98 kB / 432.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1245, allocations: 4 kB / 432.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1245, allocations: 4 kB / 432.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1245, allocations: 0 / 432.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1245, allocations: 0 / 432.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005226/0.125, allocations: 331.2 kB / 432.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/0.1253, allocations: 228.5 kB / 432.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.002e-05/0.1254, allocations: 4 kB / 432.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.1255, allocations: 8 kB / 432.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.1256, allocations: 3.984 kB / 432.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.1256, allocations: 7.938 kB / 432.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001256/0.1269, allocations: 1.013 MB / 433.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1269, allocations: 0 / 433.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.1272, allocations: 60 kB / 433.9 MB, free: 12.8 MB / 366.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.0009918/0.1282, allocations: 0.8835 MB / 434.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004117/0.1286, allocations: 123.9 kB / 434.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1286, allocations: 0 / 434.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.1288, allocations: 51.89 kB / 434.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000564/0.1293, allocations: 112.5 kB / 435 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/0.141, allocations: 8.783 MB / 443.8 MB, free: 2.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006993/0.1417, allocations: 1.008 MB / 444.8 MB, free: 1.652 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006837/0.1424, allocations: 474 kB / 445.3 MB, free: 1.184 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.1428, allocations: 247.4 kB / 445.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1428, allocations: 0 / 445.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2291/0.3719, allocations: 16.24 MB / 461.8 MB, free: 27.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.415/9.787, allocations: 9.875 kB / 461.8 MB, free: 27.61 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 12.931274020986166]