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.001743/0.001743, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002151/0.002151, allocations: 214.3 kB / 23.75 MB, free: 4.672 MB / 14.72 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 1.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00224/0.00224, allocations: 63.91 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3021, allocations: 53.4 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005616/0.3077, allocations: 3.016 MB / 434.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.3096, allocations: 0.7517 MB / 434.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004121/0.31, allocations: 11.94 kB / 435 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.3104, allocations: 63.36 kB / 435 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.3108, allocations: 115.1 kB / 435.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004457/0.3113, allocations: 99.83 kB / 435.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006017/0.3119, allocations: 414.2 kB / 435.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003633/0.3122, allocations: 158.4 kB / 435.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.3124, allocations: 159.4 kB / 435.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003014/0.3127, allocations: 183.2 kB / 436.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.458e-05/0.3128, allocations: 40 kB / 436.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.313, allocations: 59.98 kB / 436.2 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.3131, allocations: 111.6 kB / 436.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.3133, allocations: 199.1 kB / 436.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006846/0.314, allocations: 0.5061 MB / 437 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.314, allocations: 0 / 437 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.314, allocations: 4 kB / 437 MB, free: 0.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.314, allocations: 0 / 437 MB, free: 0.832 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001705/0.3157, allocations: 0.7156 MB / 437.7 MB, free: 84 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.3158, allocations: 12.03 kB / 437.8 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001113/0.3159, allocations: 66.8 kB / 437.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.316, allocations: 40.7 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005981/0.3166, allocations: 288.8 kB / 438.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.3166, allocations: 25.03 kB / 438.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.3167, allocations: 28.38 kB / 438.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006094/0.3173, allocations: 358 kB / 438.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.3173, allocations: 0 / 438.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.3173, allocations: 8 kB / 438.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.3174, allocations: 8 kB / 438.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004485/0.3178, allocations: 238.5 kB / 438.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002082/0.3199, allocations: 1.257 MB / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.3203, allocations: 178.4 kB / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.3206, allocations: 112.8 kB / 440.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.3206, allocations: 0 / 440.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.3206, allocations: 42.5 kB / 440.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.233e-06/0.3206, allocations: 0 / 440.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005779/0.3212, allocations: 232.4 kB / 440.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.3213, allocations: 55.41 kB / 440.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003904/0.3217, allocations: 324.2 kB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3217, allocations: 29.7 kB / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.3219, allocations: 212.4 kB / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.454e-05/0.3219, allocations: 59.52 kB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.718e-05/0.322, allocations: 49.66 kB / 441.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3222, allocations: 334.8 kB / 441.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.3223, allocations: 75.95 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.3225, allocations: 132.3 kB / 441.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.3228, allocations: 170.1 kB / 442 MB, free: 11.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3228, allocations: 0 / 442 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003995/0.3232, allocations: 237.4 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3232, allocations: 14.38 kB / 442.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3232, allocations: 3.938 kB / 442.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.3232, allocations: 4 kB / 442.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3234, allocations: 47.97 kB / 442.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.3234, allocations: 7.938 kB / 442.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.3238, allocations: 63.77 kB / 442.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.3238, allocations: 8 kB / 442.4 MB, free: 11.18 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.0001854/0.324, allocations: 162.1 kB / 442.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-05/0.324, allocations: 27.86 kB / 442.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004407/0.3245, allocations: 195.7 kB / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3245, allocations: 4 kB / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3245, allocations: 0 / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3245, allocations: 3.984 kB / 442.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008498/0.3253, allocations: 0.6037 MB / 443.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3253, allocations: 0 / 443.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.3255, allocations: 31.92 kB / 443.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3255, allocations: 0 / 443.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.3255, allocations: 8 kB / 443.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3255, allocations: 4 kB / 443.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.3255, allocations: 7.969 kB / 443.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.3261, allocations: 376 kB / 443.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.238e-05/0.3261, allocations: 43.7 kB / 443.8 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.3262, allocations: 0 / 443.8 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.3266, allocations: 55.92 kB / 443.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.3267, allocations: 75.86 kB / 444 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.3268, allocations: 11.94 kB / 444 MB, free: 9.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.327, allocations: 239.1 kB / 444.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.327, allocations: 0 / 444.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.3274, allocations: 87.72 kB / 444.3 MB, free: 9.184 MB / 350.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.0009073/0.3283, allocations: 0.9085 MB / 445.2 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003469/0.3287, allocations: 171.8 kB / 445.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3287, allocations: 0 / 445.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.3289, allocations: 107.9 kB / 445.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.3293, allocations: 52.09 kB / 445.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.3336, allocations: 3.048 MB / 448.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.3341, allocations: 0.7792 MB / 449.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.3342, allocations: 38.28 kB / 449.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.3344, allocations: 103.4 kB / 449.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3344, allocations: 0 / 449.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0403/0.3747, allocations: 7.644 MB / 457.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.76, allocations: 0 / 457.1 MB, free: 12.3 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/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: 16.479384063044563]