Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep") translateModel(IDEAS.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 180 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8462/0.8462, allocations: 132.2 MB / 148.9 MB, free: 12.17 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 403.4 MB, free: 7.137 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009561/0.000956, allocations: 94.66 kB / 484.3 MB, free: 8.73 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009831/0.0009831, allocations: 51.92 kB / 0.5619 GB, free: 71.05 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1347, allocations: 80.21 MB / 0.6402 GB, free: 6.777 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.RegStep): time 0.001805/0.1365, allocations: 0.6309 MB / 0.6408 GB, free: 6.141 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.000243/0.1368, allocations: 59.8 kB / 0.6409 GB, free: 6.082 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.939e-06/0.1368, allocations: 0 / 0.6409 GB, free: 6.082 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.1368, allocations: 0 / 0.6409 GB, free: 6.082 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 5.199e-06/0.1369, allocations: 0 / 0.6409 GB, free: 6.082 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001791/0.137, allocations: 11.98 kB / 0.6409 GB, free: 6.07 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 3.36e-05/0.1371, allocations: 3.984 kB / 0.6409 GB, free: 6.066 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.555e-05/0.1371, allocations: 4 kB / 0.6409 GB, free: 6.062 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.15e-05/0.1371, allocations: 0 / 0.6409 GB, free: 6.062 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.57e-05/0.1372, allocations: 0 / 0.6409 GB, free: 6.062 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-06/0.1372, allocations: 0 / 0.6409 GB, free: 6.062 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.237e-05/0.1373, allocations: 27.97 kB / 0.6409 GB, free: 6.035 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.878e-06/0.1373, allocations: 3.938 kB / 0.6409 GB, free: 6.031 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.347e-05/0.1373, allocations: 0 / 0.6409 GB, free: 6.031 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 6.979e-05/0.1374, allocations: 15.98 kB / 0.6409 GB, free: 6.016 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1374, allocations: 0 / 0.6409 GB, free: 6.016 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1374, allocations: 0 / 0.6409 GB, free: 6.016 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.155e-06/0.1374, allocations: 0 / 0.6409 GB, free: 6.016 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002512/0.1377, allocations: 319.6 kB / 0.6412 GB, free: 5.652 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.1377, allocations: 8.031 kB / 0.6412 GB, free: 5.645 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.138, allocations: 24.84 kB / 0.6413 GB, free: 5.621 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.441e-05/0.138, allocations: 168.3 kB / 0.6414 GB, free: 5.418 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-06/0.1381, allocations: 384 / 0.6414 GB, free: 5.418 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.1381, allocations: 4.375 kB / 0.6414 GB, free: 5.414 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.1382, allocations: 38.23 kB / 0.6415 GB, free: 5.371 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.1382, allocations: 192 / 0.6415 GB, free: 5.371 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.1382, allocations: 3.938 kB / 0.6415 GB, free: 5.367 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.1382, allocations: 0 / 0.6415 GB, free: 5.367 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.479e-05/0.1383, allocations: 11.98 kB / 0.6415 GB, free: 5.355 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001159/0.1385, allocations: 149.7 kB / 0.6416 GB, free: 5.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.927e-05/0.1385, allocations: 26.53 kB / 0.6416 GB, free: 5.125 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.816e-05/0.1386, allocations: 8.859 kB / 0.6417 GB, free: 5.113 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.1386, allocations: 4.062 kB / 0.6417 GB, free: 5.109 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.1386, allocations: 34.56 kB / 0.6417 GB, free: 5.066 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 1.093e-06/0.1386, allocations: 0 / 0.6417 GB, free: 5.066 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 0.000221/0.1389, allocations: 53.59 kB / 0.6417 GB, free: 5.008 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.1389, allocations: 55.41 kB / 0.6418 GB, free: 4.941 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.241e-05/0.139, allocations: 89.86 kB / 0.6419 GB, free: 4.844 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.139, allocations: 29.64 kB / 0.6419 GB, free: 4.809 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.725e-05/0.139, allocations: 84.2 kB / 0.642 GB, free: 4.723 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/0.139, allocations: 7.906 kB / 0.642 GB, free: 4.715 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.1391, allocations: 13.72 kB / 0.642 GB, free: 4.695 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.235e-05/0.1392, allocations: 314.8 kB / 0.6423 GB, free: 4.379 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.713e-05/0.1392, allocations: 4 kB / 0.6423 GB, free: 4.375 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.977e-05/0.1393, allocations: 3.984 kB / 0.6423 GB, free: 4.371 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.005e-05/0.1394, allocations: 20.92 kB / 0.6423 GB, free: 4.348 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1394, allocations: 3.984 kB / 0.6423 GB, free: 4.344 MB / 442.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001177/0.1395, allocations: 37.69 kB / 0.6424 GB, free: 4.301 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.1395, allocations: 8 kB / 0.6424 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1395, allocations: 0 / 0.6424 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1395, allocations: 3.938 kB / 0.6424 GB, free: 4.289 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.575e-05/0.1396, allocations: 7.938 kB / 0.6424 GB, free: 4.281 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.1396, allocations: 0 / 0.6424 GB, free: 4.281 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.23e-05/0.1397, allocations: 3.984 kB / 0.6424 GB, free: 4.277 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-06/0.1397, allocations: 4.031 kB / 0.6424 GB, free: 4.273 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 8.653e-05/0.1398, allocations: 111.2 kB / 0.6425 GB, free: 4.156 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.263e-06/0.1398, allocations: 0 / 0.6425 GB, free: 4.156 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.596e-05/0.1398, allocations: 7.062 kB / 0.6425 GB, free: 4.148 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1398, allocations: 4 kB / 0.6425 GB, free: 4.145 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1398, allocations: 0 / 0.6425 GB, free: 4.145 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1398, allocations: 0 / 0.6425 GB, free: 4.145 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.241e-05/0.1399, allocations: 153.7 kB / 0.6427 GB, free: 3.945 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1399, allocations: 3.938 kB / 0.6427 GB, free: 3.941 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.102e-05/0.14, allocations: 4 kB / 0.6427 GB, free: 3.938 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.14, allocations: 4 kB / 0.6427 GB, free: 3.934 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.14, allocations: 3.938 kB / 0.6427 GB, free: 3.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.14, allocations: 0 / 0.6427 GB, free: 3.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.14, allocations: 3.984 kB / 0.6427 GB, free: 3.926 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003606/0.1404, allocations: 0.6123 MB / 0.6433 GB, free: 3.254 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.692e-05/0.1404, allocations: 77.11 kB / 0.6434 GB, free: 3.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.04e-05/0.1404, allocations: 0 / 0.6434 GB, free: 3.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.427e-05/0.1405, allocations: 7.984 kB / 0.6434 GB, free: 3.152 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.138e-05/0.1405, allocations: 0 / 0.6434 GB, free: 3.152 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.1405, allocations: 0 / 0.6434 GB, free: 3.152 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.43e-05/0.1405, allocations: 75.28 kB / 0.6434 GB, free: 3.078 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1405, allocations: 3.938 kB / 0.6434 GB, free: 3.074 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002665/0.1408, allocations: 8 kB / 0.6435 GB, free: 3.066 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 9.754e-05/0.1409, allocations: 95.25 kB / 0.6435 GB, free: 2.965 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001218/0.141, allocations: 15.92 kB / 0.6436 GB, free: 2.949 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.141, allocations: 4 kB / 0.6436 GB, free: 2.945 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 4.627e-05/0.1411, allocations: 7.984 kB / 0.6436 GB, free: 2.938 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.1412, allocations: 4.219 kB / 0.6436 GB, free: 2.934 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002834/0.1415, allocations: 189.8 kB / 0.6438 GB, free: 2.711 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/0.1417, allocations: 0.6731 MB / 0.6444 GB, free: 2.012 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 3.505e-05/0.1417, allocations: 0 / 0.6444 GB, free: 2.012 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.083e-05/0.1418, allocations: 11.42 kB / 0.6444 GB, free: 2 MB / 442.7 MB Notification: Performance of SimCode: time 5.11e-07/0.1418, allocations: 4 kB / 0.6444 GB, free: 1.996 MB / 442.7 MB Notification: Performance of Templates: time 0.001608/0.1434, allocations: 217.2 kB / 0.6446 GB, free: 1.789 MB / 442.7 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)