Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 162.2 kB / 25.6 MB, free: 8.59 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9239/0.9239, allocations: 177.1 MB / 206 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 3.984 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.242e-05/1.433e-05, allocations: 2.312 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002805/0.002819, allocations: 2.953 MB / 277.1 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009432/0.003762, allocations: 0.7352 MB / 277.9 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.003908, allocations: 12.81 kB / 277.9 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.004082, allocations: 63.36 kB / 277.9 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.004285, allocations: 113.1 kB / 278 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.004551, allocations: 111.7 kB / 278.1 MB, free: 452 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.004851, allocations: 426.7 kB / 278.6 MB, free: 24 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.005068, allocations: 140.6 kB / 278.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.005246, allocations: 243.5 kB / 278.9 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.005443, allocations: 151.6 kB / 279.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.266e-05/0.005486, allocations: 40 kB / 279.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.079e-05/0.005577, allocations: 48 kB / 279.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.005692, allocations: 119.6 kB / 279.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.365e-05/0.005785, allocations: 143.6 kB / 279.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.006091, allocations: 306.9 kB / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.006092, allocations: 0 / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.006093, allocations: 4 kB / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.006098, allocations: 0 / 279.7 MB, free: 14.86 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.0008304/0.006928, allocations: 0.7959 MB / 280.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.833e-05/0.006957, allocations: 12.03 kB / 280.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.426e-05/0.007031, allocations: 64.7 kB / 280.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.007287, allocations: 267.4 kB / 280.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.007305, allocations: 25.02 kB / 280.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/0.007343, allocations: 32.38 kB / 280.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.007617, allocations: 303 kB / 281.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.007626, allocations: 192 / 281.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.007646, allocations: 12.38 kB / 281.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.007655, allocations: 11.94 kB / 281.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.007775, allocations: 92.45 kB / 281.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.009091, allocations: 1.166 MB / 282.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.009313, allocations: 123 kB / 282.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.009415, allocations: 67.64 kB / 282.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.009437, allocations: 4 kB / 282.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.009458, allocations: 37.39 kB / 282.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.333e-06/0.009459, allocations: 0 / 282.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002091/0.009668, allocations: 133.7 kB / 282.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.009694, allocations: 59.34 kB / 282.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.009874, allocations: 316.1 kB / 283.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.009889, allocations: 25.7 kB / 283.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.01006, allocations: 263 kB / 283.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.0101, allocations: 67.47 kB / 283.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.642e-05/0.01015, allocations: 47.34 kB / 283.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.01027, allocations: 0.504 MB / 284.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.808e-05/0.01031, allocations: 19.98 kB / 284.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.873e-05/0.01039, allocations: 117 kB / 284.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.0105, allocations: 145 kB / 284.4 MB, free: 9.863 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01051, allocations: 0 / 284.4 MB, free: 9.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001811/0.01069, allocations: 163.8 kB / 284.6 MB, free: 9.699 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.0107, allocations: 8 kB / 284.6 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.0107, allocations: 0 / 284.6 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.01071, allocations: 4.25 kB / 284.6 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.01082, allocations: 59.84 kB / 284.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.01083, allocations: 4 kB / 284.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.01096, allocations: 43.81 kB / 284.7 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.01098, allocations: 8 kB / 284.7 MB, free: 9.574 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.627e-05/0.01108, allocations: 176.4 kB / 284.9 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.01112, allocations: 27.86 kB / 284.9 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001857/0.0113, allocations: 143.6 kB / 285 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.01131, allocations: 4 kB / 285 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-06/0.01131, allocations: 7.938 kB / 285 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.01131, allocations: 0 / 285 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.01184, allocations: 467.8 kB / 285.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.01184, allocations: 0 / 285.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.76e-05/0.01193, allocations: 35.86 kB / 285.5 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.01193, allocations: 0 / 285.5 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.01194, allocations: 11.94 kB / 285.5 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01194, allocations: 0 / 285.5 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01194, allocations: 0 / 285.5 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.01217, allocations: 299.9 kB / 285.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.302e-05/0.0122, allocations: 31.73 kB / 285.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.01223, allocations: 11.94 kB / 285.9 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.01237, allocations: 35.95 kB / 285.9 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.01244, allocations: 39.94 kB / 285.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.01245, allocations: 8 kB / 286 MB, free: 8.219 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001016/0.01255, allocations: 213.1 kB / 286.2 MB, free: 8.012 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01255, allocations: 0 / 286.2 MB, free: 8.012 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002392/0.01279, allocations: 95.8 kB / 286.3 MB, free: 7.918 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.0001004/0.01289, allocations: 99.25 kB / 286.4 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001422/0.01304, allocations: 96.11 kB / 286.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.01304, allocations: 0 / 286.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.051e-05/0.0131, allocations: 53.97 kB / 286.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.01335, allocations: 48.98 kB / 286.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000822/0.01417, allocations: 0.5988 MB / 287.1 MB, free: 6.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.376e-05/0.01422, allocations: 92.3 kB / 287.2 MB, free: 6.871 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.811e-05/0.0143, allocations: 34.27 kB / 287.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.01444, allocations: 122.2 kB / 287.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of SimCode: time 6.02e-07/0.01444, allocations: 0 / 287.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of Templates: time 0.006322/0.02076, allocations: 4.753 MB / 292.1 MB, free: 2.02 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 2.9786342177540064]