Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008545/0.0008545, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000859/0.000859, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8832/0.8832, allocations: 177 MB / 204.1 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.664e-06/1.664e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.127e-05/2.293e-05, allocations: 3.266 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003028/0.003051, allocations: 2.784 MB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.004168, allocations: 0.7167 MB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.004341, allocations: 11.94 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.004527, allocations: 59.44 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.004762, allocations: 118.9 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.005087, allocations: 107.9 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.005437, allocations: 430 kB / 328.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.005648, allocations: 134.4 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.005841, allocations: 243.5 kB / 329.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.006043, allocations: 135.6 kB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/0.006086, allocations: 40 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.00622, allocations: 63.91 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.006344, allocations: 103.6 kB / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.95e-05/0.006443, allocations: 143.7 kB / 329.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.006836, allocations: 0.4984 MB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.006839, allocations: 4 kB / 330.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.006841, allocations: 0 / 330.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.006846, allocations: 0 / 330.1 MB, free: 10.28 MB / 298.7 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.001018/0.007865, allocations: 0.7234 MB / 330.8 MB, free: 9.523 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.007905, allocations: 15.97 kB / 330.8 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.271e-05/0.007957, allocations: 66.73 kB / 330.9 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.676e-05/0.008014, allocations: 44.7 kB / 330.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004277/0.008442, allocations: 288.5 kB / 331.2 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.00846, allocations: 25.03 kB / 331.2 MB, free: 9.062 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.008497, allocations: 32.38 kB / 331.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.008897, allocations: 397.8 kB / 331.6 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.008907, allocations: 4.188 kB / 331.6 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.008929, allocations: 20.06 kB / 331.7 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.008936, allocations: 8 kB / 331.7 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002829/0.009219, allocations: 238.5 kB / 331.9 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.01038, allocations: 1.145 MB / 333.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.01065, allocations: 170.5 kB / 333.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.01083, allocations: 117.4 kB / 333.3 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.01085, allocations: 4 kB / 333.3 MB, free: 6.828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.01088, allocations: 46.44 kB / 333.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.01088, allocations: 0 / 333.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.00035/0.01123, allocations: 232.6 kB / 333.6 MB, free: 6.543 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.01126, allocations: 55.41 kB / 333.7 MB, free: 6.477 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.01151, allocations: 328.1 kB / 334 MB, free: 6.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.01152, allocations: 25.7 kB / 334 MB, free: 6.121 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.01163, allocations: 212.4 kB / 334.2 MB, free: 5.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.01167, allocations: 55.55 kB / 334.3 MB, free: 5.852 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.01172, allocations: 45.7 kB / 334.3 MB, free: 5.801 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.642e-05/0.01182, allocations: 338.8 kB / 334.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.43e-05/0.01191, allocations: 71.95 kB / 334.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.01204, allocations: 131.7 kB / 334.8 MB, free: 5.234 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.01221, allocations: 171 kB / 335 MB, free: 5.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.01221, allocations: 0 / 335 MB, free: 5.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002608/0.01247, allocations: 241.2 kB / 335.2 MB, free: 4.801 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.01249, allocations: 11.94 kB / 335.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.01249, allocations: 0 / 335.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.01251, allocations: 7.984 kB / 335.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.01262, allocations: 48.16 kB / 335.3 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.01262, allocations: 8 kB / 335.3 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.01282, allocations: 59.81 kB / 335.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.01284, allocations: 19.98 kB / 335.4 MB, free: 4.648 MB / 298.7 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.0001313/0.01297, allocations: 149.8 kB / 335.5 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.638e-05/0.01301, allocations: 31.75 kB / 335.6 MB, free: 4.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.01328, allocations: 203.6 kB / 335.8 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.01328, allocations: 4 kB / 335.8 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.01328, allocations: 3.984 kB / 335.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.01329, allocations: 0 / 335.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000648/0.01394, allocations: 0.5531 MB / 336.3 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01394, allocations: 0 / 336.3 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.01405, allocations: 31.92 kB / 336.4 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.01405, allocations: 0 / 336.4 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.01407, allocations: 11.98 kB / 336.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.01407, allocations: 0 / 336.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.01407, allocations: 0 / 336.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003596/0.01443, allocations: 387.3 kB / 336.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/0.01448, allocations: 35.75 kB / 336.8 MB, free: 3.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.0145, allocations: 11.98 kB / 336.8 MB, free: 3.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.0147, allocations: 55.92 kB / 336.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.01482, allocations: 71.88 kB / 336.9 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.01484, allocations: 8 kB / 336.9 MB, free: 3.016 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.015, allocations: 239.1 kB / 337.2 MB, free: 2.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.015, allocations: 0 / 337.2 MB, free: 2.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002337/0.01524, allocations: 79.84 kB / 337.2 MB, free: 2.703 MB / 298.7 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.0006721/0.01591, allocations: 0.9238 MB / 338.2 MB, free: 1.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.01618, allocations: 171.8 kB / 338.3 MB, free: 1.582 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01618, allocations: 0 / 338.3 MB, free: 1.582 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.0163, allocations: 104.4 kB / 338.4 MB, free: 1.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.01662, allocations: 55.3 kB / 338.5 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.0193, allocations: 3.008 MB / 341.5 MB, free: 14.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.01942, allocations: 168.8 kB / 341.7 MB, free: 14.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.01953, allocations: 42.27 kB / 341.7 MB, free: 14.06 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.01965, allocations: 112.5 kB / 341.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01965, allocations: 0 / 341.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.04311, allocations: 8.475 MB / 350.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.146, allocations: 0 / 350.3 MB, free: 5.613 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.127255997620523]