Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001293/0.001293, allocations: 116.6 kB / 18.49 MB, free: 4.59 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.001464/0.001464, allocations: 193 kB / 21.43 MB, free: 1.656 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.412/1.412, allocations: 225.6 MB / 249.8 MB, free: 3.629 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.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 47.92 kB / 366.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.09849, allocations: 52.15 MB / 418.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004427/0.1029, allocations: 2.979 MB / 421.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1043, allocations: 0.7167 MB / 422.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.1045, allocations: 8 kB / 422.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000236/0.1047, allocations: 63.38 kB / 422.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.1051, allocations: 111 kB / 422.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003798/0.1054, allocations: 107.8 kB / 422.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005154/0.1059, allocations: 414.3 kB / 422.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002889/0.1062, allocations: 153.8 kB / 423 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.1064, allocations: 167.4 kB / 423.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002874/0.1067, allocations: 187.2 kB / 423.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.613e-05/0.1068, allocations: 44 kB / 423.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.1069, allocations: 55.98 kB / 423.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.1071, allocations: 115.6 kB / 423.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.1073, allocations: 199 kB / 423.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005907/0.1079, allocations: 0.498 MB / 424.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1079, allocations: 0 / 424.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1079, allocations: 0 / 424.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.1079, allocations: 0 / 424.3 MB, free: 6.898 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001793/0.1097, allocations: 0.7909 MB / 425 MB, free: 6.059 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1097, allocations: 12.03 kB / 425.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.452e-05/0.1098, allocations: 8.844 kB / 425.1 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.802e-05/0.1098, allocations: 70.72 kB / 425.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.702e-05/0.1099, allocations: 44.66 kB / 425.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.1104, allocations: 350.7 kB / 425.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.1105, allocations: 25.03 kB / 425.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.1105, allocations: 28.38 kB / 425.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005766/0.1111, allocations: 353.8 kB / 425.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1111, allocations: 0 / 425.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.1111, allocations: 12 kB / 425.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.1112, allocations: 11.94 kB / 425.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004308/0.1116, allocations: 246.4 kB / 426.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.1136, allocations: 1.296 MB / 427.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004048/0.114, allocations: 166.4 kB / 427.6 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.1142, allocations: 124.8 kB / 427.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.1143, allocations: 4 kB / 427.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.1143, allocations: 34.56 kB / 427.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.1143, allocations: 0 / 427.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005083/0.1148, allocations: 221.4 kB / 428 MB, free: 2.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.1149, allocations: 55.69 kB / 428.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003989/0.1153, allocations: 322.9 kB / 428.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.1153, allocations: 37.69 kB / 428.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.1155, allocations: 208.4 kB / 428.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/0.1155, allocations: 59.48 kB / 428.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.241e-05/0.1156, allocations: 41.7 kB / 428.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1158, allocations: 338.8 kB / 429.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.1159, allocations: 67.97 kB / 429.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.1161, allocations: 144.3 kB / 429.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.1163, allocations: 161.9 kB / 429.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1163, allocations: 3.938 kB / 429.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004277/0.1168, allocations: 241.2 kB / 429.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1168, allocations: 8 kB / 429.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1168, allocations: 4.25 kB / 429.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1168, allocations: 4 kB / 429.7 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.117, allocations: 47.91 kB / 429.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.117, allocations: 4 kB / 429.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004087/0.1174, allocations: 71.77 kB / 429.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.1175, allocations: 8 kB / 429.8 MB, free: 1.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001695/0.1176, allocations: 157.7 kB / 430 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.12e-05/0.1177, allocations: 23.86 kB / 430 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004226/0.1181, allocations: 206.8 kB / 430.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-06/0.1181, allocations: 0 / 430.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1181, allocations: 0 / 430.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1181, allocations: 0 / 430.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009096/0.119, allocations: 0.6357 MB / 430.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.119, allocations: 0 / 430.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.1192, allocations: 32.02 kB / 430.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/0.1192, allocations: 4 kB / 430.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.1192, allocations: 8 kB / 430.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.1192, allocations: 7.922 kB / 430.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1192, allocations: 0 / 430.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005499/0.1198, allocations: 378.7 kB / 431.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.1199, allocations: 108.9 kB / 431.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.1199, allocations: 12.05 kB / 431.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.1203, allocations: 55.92 kB / 431.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.1205, allocations: 75.83 kB / 431.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.1206, allocations: 7.984 kB / 431.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003174/0.1209, allocations: 230 kB / 431.7 MB, free: 15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1209, allocations: 4 kB / 431.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.1213, allocations: 87.78 kB / 431.8 MB, free: 14.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0009635/0.1222, allocations: 0.927 MB / 432.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003804/0.1226, allocations: 175.9 kB / 432.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1226, allocations: 0 / 432.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.1228, allocations: 99.88 kB / 433 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004516/0.1232, allocations: 55.2 kB / 433.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.1276, allocations: 3.075 MB / 436.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.128, allocations: 0.779 MB / 436.9 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.1281, allocations: 34.3 kB / 436.9 MB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.1283, allocations: 107.4 kB / 437.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1283, allocations: 0 / 437.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04057/0.1689, allocations: 7.492 MB / 444.5 MB, free: 2.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.266/8.435, allocations: 12.5 kB / 444.6 MB, free: 2.141 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 14.410799742967356]