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.001019/0.001019, allocations: 88.25 kB / 22.22 MB, free: 2.281 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.001183/0.001183, allocations: 168.4 kB / 25.61 MB, free: 8.879 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.9955/0.9955, allocations: 177 MB / 205.9 MB, free: 4.449 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: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 274.1 MB, free: 4.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.395e-05/2.57e-05, allocations: 2.938 kB / 274.1 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003325/0.00335, allocations: 2.959 MB / 277.1 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.004525, allocations: 0.7367 MB / 277.8 MB, free: 476 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.004686, allocations: 15.94 kB / 277.8 MB, free: 460 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.004872, allocations: 59.38 kB / 277.9 MB, free: 400 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.005092, allocations: 119 kB / 278 MB, free: 280 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002775/0.005369, allocations: 99.81 kB / 278.1 MB, free: 180 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003405/0.005709, allocations: 434.1 kB / 278.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.005911, allocations: 142.3 kB / 278.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.006097, allocations: 243.5 kB / 278.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.006283, allocations: 151.6 kB / 279 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.45e-05/0.006327, allocations: 40 kB / 279.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.344e-05/0.006421, allocations: 59.92 kB / 279.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.006527, allocations: 107.6 kB / 279.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.783e-05/0.006625, allocations: 139.7 kB / 279.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.006933, allocations: 303 kB / 279.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.006937, allocations: 4 kB / 279.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.006937, allocations: 0 / 279.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.006942, allocations: 0 / 279.7 MB, free: 14.59 MB / 266.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.0008629/0.007805, allocations: 0.7998 MB / 280.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.007834, allocations: 8.031 kB / 280.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.048e-05/0.007914, allocations: 68.64 kB / 280.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.008166, allocations: 267.5 kB / 280.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.008184, allocations: 24.97 kB / 280.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.008223, allocations: 40.31 kB / 280.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.008488, allocations: 299 kB / 281.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.008499, allocations: 192 / 281.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.059e-05/0.00852, allocations: 16.38 kB / 281.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.008528, allocations: 11.94 kB / 281.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.008644, allocations: 84.45 kB / 281.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.009654, allocations: 1.174 MB / 282.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.009842, allocations: 115.1 kB / 282.6 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.951e-05/0.009941, allocations: 59.66 kB / 282.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.009964, allocations: 11.92 kB / 282.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.009986, allocations: 37.39 kB / 282.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.009987, allocations: 0 / 282.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002234/0.01021, allocations: 132 kB / 282.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.01024, allocations: 63.34 kB / 282.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.01043, allocations: 316.1 kB / 283.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.01045, allocations: 29.7 kB / 283.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.01055, allocations: 255.1 kB / 283.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.424e-05/0.01059, allocations: 63.47 kB / 283.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.918e-05/0.01065, allocations: 55.33 kB / 283.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.01077, allocations: 0.504 MB / 284.1 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.31e-05/0.01081, allocations: 27.92 kB / 284.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.518e-05/0.01089, allocations: 110.8 kB / 284.2 MB, free: 9.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.01101, allocations: 147.4 kB / 284.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01101, allocations: 0 / 284.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000188/0.0112, allocations: 169.4 kB / 284.5 MB, free: 9.418 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.01121, allocations: 8 kB / 284.5 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.01122, allocations: 0 / 284.5 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.01122, allocations: 4 kB / 284.5 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.01133, allocations: 51.84 kB / 284.6 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.01134, allocations: 4 kB / 284.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.01148, allocations: 47.81 kB / 284.6 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.01149, allocations: 8.188 kB / 284.6 MB, free: 9.297 MB / 266.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 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * 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 9.138e-05/0.01158, allocations: 180.4 kB / 284.8 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.01162, allocations: 31.86 kB / 284.8 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.0118, allocations: 135.6 kB / 285 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.0118, allocations: 4 kB / 285 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.01181, allocations: 3.938 kB / 285 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.01181, allocations: 0 / 285 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003876/0.0122, allocations: 461.6 kB / 285.4 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.0122, allocations: 0 / 285.4 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.034e-05/0.01229, allocations: 27.98 kB / 285.4 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.01229, allocations: 4.031 kB / 285.4 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.0123, allocations: 11.94 kB / 285.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.0123, allocations: 0 / 285.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01231, allocations: 0 / 285.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.01253, allocations: 306.8 kB / 285.8 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.201e-05/0.01256, allocations: 31.75 kB / 285.8 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.01259, allocations: 11.92 kB / 285.8 MB, free: 8.031 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.01274, allocations: 44 kB / 285.8 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.01281, allocations: 39.92 kB / 285.9 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.01282, allocations: 8 kB / 285.9 MB, free: 7.941 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001035/0.01292, allocations: 213.1 kB / 286.1 MB, free: 7.734 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01292, allocations: 0 / 286.1 MB, free: 7.734 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002345/0.01316, allocations: 83.78 kB / 286.2 MB, free: 7.652 MB / 266.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.0001235/0.01328, allocations: 111.2 kB / 286.3 MB, free: 7.535 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001592/0.01344, allocations: 95.88 kB / 286.4 MB, free: 7.438 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.01344, allocations: 4.062 kB / 286.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.064e-05/0.0135, allocations: 43.61 kB / 286.4 MB, free: 7.387 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.01376, allocations: 48.84 kB / 286.5 MB, free: 7.344 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008438/0.0146, allocations: 0.6184 MB / 287.1 MB, free: 6.695 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.647e-05/0.01466, allocations: 88.31 kB / 287.2 MB, free: 6.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.336e-05/0.01474, allocations: 30.28 kB / 287.2 MB, free: 6.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.01488, allocations: 118.2 kB / 287.3 MB, free: 6.441 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01488, allocations: 0 / 287.3 MB, free: 6.441 MB / 266.7 MB Notification: Performance of Templates: time 0.006503/0.02139, allocations: 4.736 MB / 292.1 MB, free: 1.77 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1035570302046835]