Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001809/0.001809, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002429/0.002429, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.52/1.52, allocations: 230.6 MB / 258.3 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 63.89 kB / 379 MB, free: 2.777 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3162, allocations: 53.37 MB / 432.4 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005526/0.3217, allocations: 3.016 MB / 435.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.3235, allocations: 0.7556 MB / 436.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.3238, allocations: 11.94 kB / 436.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002479/0.324, allocations: 63.36 kB / 436.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003166/0.3243, allocations: 115.1 kB / 436.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003821/0.3247, allocations: 99.83 kB / 436.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007039/0.3254, allocations: 418.2 kB / 436.9 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.3257, allocations: 154 kB / 437 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.3259, allocations: 163.4 kB / 437.2 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.3262, allocations: 179.2 kB / 437.3 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.495e-05/0.3263, allocations: 40 kB / 437.4 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.3264, allocations: 63.92 kB / 437.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.3266, allocations: 111.7 kB / 437.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.3268, allocations: 203 kB / 437.8 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006602/0.3275, allocations: 0.4884 MB / 438.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3275, allocations: 3.938 kB / 438.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3275, allocations: 0 / 438.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.3275, allocations: 4 kB / 438.2 MB, free: 1.133 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.001672/0.3292, allocations: 0.7195 MB / 439 MB, free: 388 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3292, allocations: 12.03 kB / 439 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.3293, allocations: 44.7 kB / 439 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005922/0.3299, allocations: 288.9 kB / 439.3 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.3299, allocations: 21.03 kB / 439.3 MB, free: 0 / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.767e-05/0.33, allocations: 32.42 kB / 439.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006447/0.3307, allocations: 354.1 kB / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3307, allocations: 0 / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-05/0.3307, allocations: 16 kB / 439.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3307, allocations: 8 kB / 439.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005556/0.3313, allocations: 234.5 kB / 440 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.3335, allocations: 1.257 MB / 441.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004193/0.3339, allocations: 162.5 kB / 441.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.3342, allocations: 123.8 kB / 441.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.3342, allocations: 4 kB / 441.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.3343, allocations: 38.5 kB / 441.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.864e-06/0.3343, allocations: 0 / 441.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005282/0.3348, allocations: 225.4 kB / 441.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.3349, allocations: 55.41 kB / 441.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004366/0.3353, allocations: 324.2 kB / 442.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.3353, allocations: 37.64 kB / 442.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.3355, allocations: 212.4 kB / 442.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.821e-05/0.3356, allocations: 55.58 kB / 442.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/0.3356, allocations: 45.66 kB / 442.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3358, allocations: 338.8 kB / 442.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.336, allocations: 75.89 kB / 442.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.3362, allocations: 139.6 kB / 443 MB, free: 12.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.3365, allocations: 166.3 kB / 443.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3365, allocations: 0 / 443.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004428/0.3369, allocations: 245.2 kB / 443.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3369, allocations: 4 kB / 443.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.3369, allocations: 8.25 kB / 443.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.337, allocations: 3.938 kB / 443.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.3373, allocations: 43.97 kB / 443.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.3373, allocations: 7.938 kB / 443.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.3376, allocations: 67.77 kB / 443.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.3377, allocations: 12 kB / 443.6 MB, free: 11.54 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.000182/0.3379, allocations: 149.8 kB / 443.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.336e-05/0.3379, allocations: 27.8 kB / 443.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004383/0.3384, allocations: 207.6 kB / 443.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3384, allocations: 0 / 443.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3384, allocations: 0 / 443.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3384, allocations: 7.984 kB / 443.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008787/0.3392, allocations: 0.5993 MB / 444.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3392, allocations: 0 / 444.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.3394, allocations: 32.02 kB / 444.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3394, allocations: 3.938 kB / 444.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.3394, allocations: 8 kB / 444.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.3394, allocations: 3.984 kB / 444.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3394, allocations: 0 / 444.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.34, allocations: 372.5 kB / 444.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-05/0.3401, allocations: 35.77 kB / 445 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.3401, allocations: 12.06 kB / 445 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003963/0.3405, allocations: 55.91 kB / 445 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.3407, allocations: 71.88 kB / 445.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.3407, allocations: 4 kB / 445.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002992/0.341, allocations: 246.9 kB / 445.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.341, allocations: 4 kB / 445.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005369/0.3416, allocations: 87.78 kB / 445.5 MB, free: 9.555 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.0002159/0.3418, allocations: 103.2 kB / 445.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004004/0.3422, allocations: 175.8 kB / 445.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3422, allocations: 0 / 445.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.3424, allocations: 100.4 kB / 445.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.3428, allocations: 68.88 kB / 445.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.3444, allocations: 0.7121 MB / 446.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.3449, allocations: 0.7714 MB / 447.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.3451, allocations: 38.27 kB / 447.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.867e-05/0.3451, allocations: 27.44 kB / 447.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3451, allocations: 0 / 447.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of Templates: time 0.01063/0.3558, allocations: 4.658 MB / 452.1 MB, free: 2.891 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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: 5.316310983151197]