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.001695/0.001695, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 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.001505/0.001505, allocations: 166.5 kB / 24.5 MB, free: 3.453 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.44/1.44, allocations: 177.1 MB / 204.7 MB, free: 8.887 MB / 190.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: 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 0.001899/0.001899, allocations: 65.83 kB / 325.5 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1134, allocations: 53.39 MB / 378.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004742/0.1182, allocations: 2.793 MB / 381.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.1198, allocations: 0.7205 MB / 382.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003252/0.1201, allocations: 4 kB / 382.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.1205, allocations: 67.36 kB / 382.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004261/0.1209, allocations: 111.1 kB / 382.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.1213, allocations: 111.8 kB / 382.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000628/0.122, allocations: 406.3 kB / 383.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.1223, allocations: 146.4 kB / 383.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.1225, allocations: 163.4 kB / 383.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.1227, allocations: 159.2 kB / 383.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.1228, allocations: 40 kB / 383.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.1229, allocations: 55.98 kB / 383.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001689/0.1231, allocations: 107.6 kB / 383.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.1233, allocations: 167.2 kB / 383.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006101/0.1239, allocations: 498.1 kB / 384.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1239, allocations: 0 / 384.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1239, allocations: 4 kB / 384.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1239, allocations: 4 kB / 384.4 MB, free: 9.977 MB / 350.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.001651/0.1255, allocations: 0.7311 MB / 385.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1256, allocations: 15.98 kB / 385.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.258e-05/0.1257, allocations: 40.7 kB / 385.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000519/0.1262, allocations: 297.2 kB / 385.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.1262, allocations: 25.03 kB / 385.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.201e-05/0.1263, allocations: 28.38 kB / 385.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006021/0.1269, allocations: 397.6 kB / 385.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1269, allocations: 0 / 385.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.1269, allocations: 16 kB / 385.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.1269, allocations: 8 kB / 386 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004267/0.1274, allocations: 238.5 kB / 386.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1292, allocations: 1.103 MB / 387.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.1295, allocations: 166.6 kB / 387.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.1298, allocations: 112.8 kB / 387.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.1298, allocations: 0 / 387.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.1299, allocations: 42.44 kB / 387.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 9.21e-07/0.1299, allocations: 0 / 387.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004734/0.1303, allocations: 236.9 kB / 387.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.1304, allocations: 51.41 kB / 387.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.1307, allocations: 297.9 kB / 388.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.1307, allocations: 29.7 kB / 388.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.1309, allocations: 220.3 kB / 388.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.149e-05/0.131, allocations: 59.48 kB / 388.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.914e-05/0.131, allocations: 53.64 kB / 388.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1312, allocations: 330.8 kB / 388.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.1313, allocations: 71.97 kB / 388.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.1315, allocations: 136.3 kB / 389.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.1318, allocations: 170.4 kB / 389.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1318, allocations: 4 kB / 389.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004084/0.1322, allocations: 237.2 kB / 389.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1322, allocations: 8 kB / 389.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1322, allocations: 0 / 389.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.1322, allocations: 4 kB / 389.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.1324, allocations: 52.16 kB / 389.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.1324, allocations: 4 kB / 389.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.1328, allocations: 67.77 kB / 389.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.1328, allocations: 12 kB / 389.6 MB, free: 4.5 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.0001746/0.133, allocations: 145.8 kB / 389.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-05/0.1331, allocations: 27.8 kB / 389.8 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00041/0.1335, allocations: 203.7 kB / 390 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1335, allocations: 4 kB / 390 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1335, allocations: 0 / 390 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1335, allocations: 0 / 390 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007684/0.1343, allocations: 0.5029 MB / 390.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1343, allocations: 0 / 390.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.1344, allocations: 35.92 kB / 390.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1344, allocations: 0 / 390.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.1345, allocations: 4 kB / 390.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1345, allocations: 0 / 390.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1345, allocations: 32 / 390.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005311/0.135, allocations: 395.6 kB / 390.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.693e-05/0.1351, allocations: 35.81 kB / 390.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.728e-05/0.1351, allocations: 4 kB / 390.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.1355, allocations: 51.92 kB / 391 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.1357, allocations: 75.86 kB / 391.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.1357, allocations: 8.062 kB / 391.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000265/0.136, allocations: 225.2 kB / 391.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.136, allocations: 0 / 391.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003974/0.1364, allocations: 83.78 kB / 391.4 MB, free: 2.648 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.0002079/0.1366, allocations: 115.2 kB / 391.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000376/0.1369, allocations: 170.6 kB / 391.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1369, allocations: 0 / 391.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.1371, allocations: 100.4 kB / 391.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003963/0.1375, allocations: 52.41 kB / 391.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.1389, allocations: 0.7159 MB / 392.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.1391, allocations: 168.8 kB / 392.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001282/0.1392, allocations: 34.28 kB / 392.7 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.156e-05/0.1393, allocations: 28.5 kB / 392.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1393, allocations: 0 / 392.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of Templates: time 0.009464/0.1488, allocations: 4.291 MB / 397 MB, free: 12.98 MB / 366.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.886760500958189]