Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") translateModel(HanserModelica.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01183/0.01183, allocations: 101.5 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.6/2.6, allocations: 222.9 MB / 239.5 MB, free: 4.789 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002519/0.002519, allocations: 200.4 kB / 289.8 MB, free: 2.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06111/0.06111, allocations: 8.787 MB / 348.7 MB, free: 4.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002781/0.002782, allocations: 74.41 kB / 411.1 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1353, allocations: 51.57 MB / 462.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.003978/0.1393, allocations: 1.434 MB / 464.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.1413, allocations: 0.8528 MB / 464.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.358e-05/0.1414, allocations: 0 / 464.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004982/0.1419, allocations: 83.73 kB / 465 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.1421, allocations: 7.938 kB / 465 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.1434, allocations: 450.4 kB / 465.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.1436, allocations: 35.8 kB / 465.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.564e-05/0.1436, allocations: 4 kB / 465.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.1437, allocations: 8 kB / 465.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.795e-05/0.1438, allocations: 19.91 kB / 465.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.622e-05/0.1438, allocations: 0 / 465.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003921/0.1442, allocations: 119.8 kB / 465.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.693e-05/0.1443, allocations: 3.984 kB / 465.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.102e-05/0.1443, allocations: 15.92 kB / 465.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.1446, allocations: 91.77 kB / 465.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1446, allocations: 0 / 465.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1446, allocations: 0 / 465.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1446, allocations: 0 / 465.7 MB, free: 11.8 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001449/0.1461, allocations: 423.7 kB / 466.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.1462, allocations: 12.03 kB / 466.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.806e-05/0.1462, allocations: 4.844 kB / 466.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.1464, allocations: 168.3 kB / 466.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.1465, allocations: 4.375 kB / 466.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.1465, allocations: 8.312 kB / 466.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.1467, allocations: 61.98 kB / 466.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.1467, allocations: 0 / 466.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.1468, allocations: 0 / 466.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1468, allocations: 0 / 466.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001468/0.1469, allocations: 39.92 kB / 466.4 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003207/0.1473, allocations: 181.5 kB / 466.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.1476, allocations: 74.62 kB / 466.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.611e-05/0.1477, allocations: 28.98 kB / 466.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.1477, allocations: 0 / 466.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.1478, allocations: 38.5 kB / 466.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.402e-06/0.1478, allocations: 0 / 466.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003896/0.1482, allocations: 101.6 kB / 466.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.1483, allocations: 51.41 kB / 466.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.1484, allocations: 109.8 kB / 467 MB, free: 10.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.1484, allocations: 25.7 kB / 467 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.441e-05/0.1485, allocations: 88.12 kB / 467.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.1486, allocations: 19.66 kB / 467.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.768e-05/0.1486, allocations: 17.72 kB / 467.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.1488, allocations: 318.8 kB / 467.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.016e-05/0.1489, allocations: 16 kB / 467.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-05/0.149, allocations: 19.98 kB / 467.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.1492, allocations: 53.48 kB / 467.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1492, allocations: 7.938 kB / 467.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002378/0.1494, allocations: 77.69 kB / 467.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.1495, allocations: 7.938 kB / 467.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.1495, allocations: 3.984 kB / 467.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1495, allocations: 0 / 467.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1497, allocations: 8 kB / 467.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.1497, allocations: 11.97 kB / 467.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.295e-05/0.1498, allocations: 0 / 467.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.1498, allocations: 0 / 467.7 MB, free: 9.633 MB / 302.1 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 (6): * Single equations (assignments): 6 * 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.0001472/0.15, allocations: 122.4 kB / 467.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.15, allocations: 7.844 kB / 467.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003368/0.1504, allocations: 102 kB / 467.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1504, allocations: 4 kB / 467.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.1504, allocations: 0 / 467.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.1504, allocations: 3.984 kB / 467.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.1508, allocations: 181.6 kB / 468.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1508, allocations: 4 kB / 468.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.1509, allocations: 8 kB / 468.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.1509, allocations: 7.938 kB / 468.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.151, allocations: 7.938 kB / 468.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.151, allocations: 4 kB / 468.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.151, allocations: 0 / 468.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.1513, allocations: 113 kB / 468.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.099e-05/0.1514, allocations: 88.98 kB / 468.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.1514, allocations: 7.938 kB / 468.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.558e-05/0.1515, allocations: 0 / 468.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/0.1515, allocations: 8 kB / 468.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.1516, allocations: 3.984 kB / 468.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.668e-05/0.1517, allocations: 91.34 kB / 468.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1517, allocations: 0 / 468.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004031/0.1521, allocations: 12 kB / 468.4 MB, free: 8.766 MB / 302.1 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 (8): * Single equations (assignments): 8 * 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.000223/0.1523, allocations: 115.2 kB / 468.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.1526, allocations: 51.92 kB / 468.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1526, allocations: 0 / 468.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.1527, allocations: 32 kB / 468.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.153, allocations: 0 / 468.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005962/0.1536, allocations: 223.6 kB / 468.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.154, allocations: 0.6887 MB / 469.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.55e-05/0.1541, allocations: 7.438 kB / 469.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1541, allocations: 0 / 469.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of Templates: time 0.003742/0.1579, allocations: 0.9238 MB / 470.5 MB, free: 6.668 MB / 302.1 MB make -j1 -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.makefile (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & ./HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)