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.001535/0.001535, allocations: 120.7 kB / 17.79 MB, free: 5.137 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.001595/0.001595, allocations: 186.9 kB / 20.73 MB, free: 2.207 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.395/1.395, allocations: 225.6 MB / 249.1 MB, free: 3.582 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 51.92 kB / 365.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09772, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003076/0.1008, allocations: 1.909 MB / 419.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.1025, allocations: 1.242 MB / 420.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.453e-05/0.1026, allocations: 4 kB / 420.9 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009507/0.1035, allocations: 0.4984 MB / 421.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.1037, allocations: 199.4 kB / 421.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.1041, allocations: 171.3 kB / 421.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.1045, allocations: 227.1 kB / 422 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.474e-05/0.1045, allocations: 21.67 kB / 422 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.1047, allocations: 119.6 kB / 422.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.105, allocations: 231.4 kB / 422.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.105, allocations: 8 kB / 422.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.1051, allocations: 67.89 kB / 422.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/0.1054, allocations: 263.3 kB / 422.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002288/0.1056, allocations: 277.9 kB / 423 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000776/0.1064, allocations: 0.77 MB / 423.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1064, allocations: 4 kB / 423.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1064, allocations: 0 / 423.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1064, allocations: 0 / 423.7 MB, free: 6.594 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.002586/0.109, allocations: 1.224 MB / 425 MB, free: 5.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.109, allocations: 8.031 kB / 425 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.1e-05/0.109, allocations: 34.69 kB / 425 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.1092, allocations: 92.36 kB / 425.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1103, allocations: 0.7557 MB / 425.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.1103, allocations: 384 / 425.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.1103, allocations: 8.375 kB / 425.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.1106, allocations: 113.7 kB / 426 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.1106, allocations: 0 / 426 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.1106, allocations: 4 kB / 426 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1106, allocations: 4 kB / 426 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.111, allocations: 139.9 kB / 426.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.1121, allocations: 0.8259 MB / 426.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.1123, allocations: 78.53 kB / 427 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.1125, allocations: 72.89 kB / 427.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.1125, allocations: 0 / 427.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.1125, allocations: 34.56 kB / 427.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.1125, allocations: 0 / 427.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007731/0.1133, allocations: 341 kB / 427.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.1133, allocations: 51.41 kB / 427.5 MB, free: 2.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001672/0.115, allocations: 1.409 MB / 428.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.115, allocations: 29.64 kB / 428.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003342/0.1154, allocations: 380.4 kB / 429.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.1154, allocations: 15.89 kB / 429.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.333e-05/0.1154, allocations: 17.72 kB / 429.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1156, allocations: 321.9 kB / 429.7 MB, free: 428 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.1157, allocations: 59.95 kB / 429.7 MB, free: 368 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.1159, allocations: 90.5 kB / 429.8 MB, free: 268 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/0.1162, allocations: 166.4 kB / 430 MB, free: 92 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1162, allocations: 0 / 430 MB, free: 92 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005648/0.1168, allocations: 265.1 kB / 430.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.1168, allocations: 4 kB / 430.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1168, allocations: 4.094 kB / 430.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1168, allocations: 0 / 430.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.117, allocations: 19.97 kB / 430.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.117, allocations: 0 / 430.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.1172, allocations: 8 kB / 430.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.1172, allocations: 3.984 kB / 430.3 MB, free: 15.78 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.0003379/0.1176, allocations: 342.1 kB / 430.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.1177, allocations: 95.38 kB / 430.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005944/0.1183, allocations: 281.2 kB / 431 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1183, allocations: 0 / 431 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1183, allocations: 7.938 kB / 431 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-06/0.1183, allocations: 4 kB / 431 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005566/0.1189, allocations: 0.5065 MB / 431.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.1189, allocations: 3.984 kB / 431.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.377e-05/0.119, allocations: 15.98 kB / 431.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.119, allocations: 0 / 431.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.119, allocations: 0 / 431.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.119, allocations: 0 / 431.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.119, allocations: 0 / 431.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000507/0.1195, allocations: 335.4 kB / 431.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004205/0.1199, allocations: 224.5 kB / 432.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.566e-05/0.12, allocations: 3.984 kB / 432.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.1202, allocations: 7.984 kB / 432.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.1202, allocations: 7.984 kB / 432.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.1202, allocations: 0 / 432.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00124/0.1215, allocations: 1.021 MB / 433.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1215, allocations: 0 / 433.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.1218, allocations: 64 kB / 433.2 MB, free: 12.78 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.0008925/0.1227, allocations: 0.8795 MB / 434 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003655/0.1231, allocations: 127.9 kB / 434.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1231, allocations: 0 / 434.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.1232, allocations: 55.89 kB / 434.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005534/0.1238, allocations: 100.4 kB / 434.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.1351, allocations: 8.791 MB / 443.1 MB, free: 2.656 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000672/0.1358, allocations: 1.001 MB / 444.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006415/0.1364, allocations: 470 kB / 444.6 MB, free: 1.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.1367, allocations: 247.4 kB / 444.8 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1367, allocations: 0 / 444.8 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2235/0.3602, allocations: 16.2 MB / 461 MB, free: 27.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.57/9.93, allocations: 10.83 kB / 461 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.68044176697731]