Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.027/1.027, allocations: 173.3 MB / 201.1 MB, free: 9.016 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 268 MB, free: 6.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.815e-05/1.99e-05, allocations: 2.312 kB / 268 MB, free: 6.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003278/0.003298, allocations: 2.979 MB / 270.9 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.004553, allocations: 0.7166 MB / 271.7 MB, free: 2.617 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.004725, allocations: 11.94 kB / 271.7 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.004932, allocations: 55.44 kB / 271.7 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002475/0.005179, allocations: 119 kB / 271.8 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.00555, allocations: 107.8 kB / 272 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003878/0.005938, allocations: 434 kB / 272.4 MB, free: 1.902 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.00618, allocations: 134.4 kB / 272.5 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002296/0.006409, allocations: 247.5 kB / 272.7 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.006621, allocations: 151.5 kB / 272.9 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.241e-05/0.006673, allocations: 40 kB / 272.9 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.006778, allocations: 67.86 kB / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.006898, allocations: 103.6 kB / 273.1 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.007002, allocations: 151.6 kB / 273.3 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003817/0.007384, allocations: 299 kB / 273.5 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.007386, allocations: 0 / 273.5 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.007387, allocations: 0 / 273.5 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.007394, allocations: 4 kB / 273.5 MB, free: 0.7305 MB / 250.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.0009846/0.008379, allocations: 0.7921 MB / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.008418, allocations: 11.97 kB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.958e-05/0.008518, allocations: 68.7 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.008842, allocations: 271.4 kB / 274.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.008864, allocations: 28.97 kB / 274.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.008913, allocations: 28.38 kB / 274.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003565/0.009269, allocations: 327.1 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.009283, allocations: 4.188 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.009312, allocations: 12.38 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.009325, allocations: 11.94 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.009515, allocations: 107.8 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.01072, allocations: 1.217 MB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.01096, allocations: 127.1 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.01111, allocations: 79.58 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.01115, allocations: 4 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.01118, allocations: 37.39 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.01118, allocations: 0 / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002863/0.01147, allocations: 141.7 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.0115, allocations: 55.41 kB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.01172, allocations: 328.2 kB / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.01174, allocations: 33.69 kB / 277.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.01185, allocations: 255.1 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.355e-05/0.01189, allocations: 59.48 kB / 277.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.853e-05/0.01195, allocations: 51.36 kB / 277.6 MB, free: 12.47 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.01208, allocations: 0.5079 MB / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.748e-05/0.01214, allocations: 27.92 kB / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.01224, allocations: 113.2 kB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.01239, allocations: 156 kB / 278.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.01239, allocations: 0 / 278.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002227/0.01262, allocations: 185.2 kB / 278.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.01263, allocations: 4.25 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.01264, allocations: 8 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.01266, allocations: 7.938 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.01277, allocations: 43.92 kB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.01277, allocations: 7.984 kB / 278.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.01291, allocations: 47.81 kB / 278.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.01293, allocations: 11.94 kB / 278.7 MB, free: 11.27 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 (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 9.927e-05/0.01303, allocations: 176.5 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.888e-05/0.01307, allocations: 27.86 kB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002324/0.0133, allocations: 147.1 kB / 279 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.0133, allocations: 11.92 kB / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.01331, allocations: 0 / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.01331, allocations: 0 / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004529/0.01376, allocations: 0.5049 MB / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.01377, allocations: 0 / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.445e-05/0.01386, allocations: 31.92 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01386, allocations: 0 / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.01388, allocations: 4 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.01388, allocations: 4.016 kB / 279.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01388, allocations: 4 kB / 279.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.01416, allocations: 311.9 kB / 279.9 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.0142, allocations: 39.67 kB / 279.9 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.01423, allocations: 8 kB / 279.9 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.01436, allocations: 31.97 kB / 279.9 MB, free: 9.895 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.0145, allocations: 99.81 kB / 280 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.01451, allocations: 8 kB / 280.1 MB, free: 9.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001363/0.01465, allocations: 229.1 kB / 280.3 MB, free: 9.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01465, allocations: 0 / 280.3 MB, free: 9.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002432/0.01489, allocations: 83.78 kB / 280.4 MB, free: 9.48 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.0001292/0.01502, allocations: 115.2 kB / 280.5 MB, free: 9.359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002/0.01522, allocations: 107.5 kB / 280.6 MB, free: 9.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01522, allocations: 0 / 280.6 MB, free: 9.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.019e-05/0.01529, allocations: 51.62 kB / 280.6 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.01556, allocations: 55.5 kB / 280.7 MB, free: 9.148 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009813/0.01654, allocations: 0.6115 MB / 281.3 MB, free: 8.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.793e-05/0.0166, allocations: 96.3 kB / 281.4 MB, free: 8.387 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.485e-05/0.01667, allocations: 22.3 kB / 281.4 MB, free: 8.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.513e-05/0.01674, allocations: 32.48 kB / 281.4 MB, free: 8.336 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01674, allocations: 0 / 281.4 MB, free: 8.336 MB / 266.7 MB Notification: Performance of Templates: time 0.005783/0.02252, allocations: 4.345 MB / 285.8 MB, free: 4.035 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.3416105429641902]