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.001023/0.001023, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.001103/0.001103, allocations: 188.5 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03135/0.03135, allocations: 8.789 MB / 348.1 MB, free: 4.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 71.45 kB / 410.4 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.08617, allocations: 51.56 MB / 461.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002479/0.08869, allocations: 1.437 MB / 463.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.0898, allocations: 0.8606 MB / 464.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.874e-05/0.08983, allocations: 4 kB / 464.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.09007, allocations: 75.73 kB / 464.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-05/0.09015, allocations: 15.92 kB / 464.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007251/0.09088, allocations: 438.4 kB / 464.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.09099, allocations: 35.81 kB / 464.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.518e-05/0.09103, allocations: 11.98 kB / 464.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.488e-05/0.09109, allocations: 15.92 kB / 464.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.201e-05/0.09113, allocations: 7.938 kB / 464.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.09115, allocations: 4 kB / 464.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.09135, allocations: 119.8 kB / 465 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.113e-05/0.09137, allocations: 7.984 kB / 465 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.372e-05/0.0914, allocations: 7.938 kB / 465 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001891/0.09159, allocations: 139.6 kB / 465.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.09161, allocations: 0 / 465.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.09161, allocations: 4 kB / 465.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.09162, allocations: 0 / 465.1 MB, free: 11.72 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.0007797/0.09241, allocations: 419.7 kB / 465.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.09244, allocations: 12.03 kB / 465.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.948e-05/0.09248, allocations: 4.844 kB / 465.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.172e-05/0.09258, allocations: 168.3 kB / 465.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.09259, allocations: 384 / 465.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.09261, allocations: 4.375 kB / 465.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.09273, allocations: 61.98 kB / 465.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.09275, allocations: 4 kB / 465.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.09276, allocations: 0 / 465.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.09277, allocations: 3.938 kB / 465.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.359e-05/0.09286, allocations: 39.98 kB / 465.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/0.09303, allocations: 181.5 kB / 466 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.09319, allocations: 62.62 kB / 466.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.152e-05/0.09325, allocations: 28.98 kB / 466.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.09327, allocations: 0 / 466.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.0933, allocations: 42.5 kB / 466.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.21e-07/0.0933, allocations: 0 / 466.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002107/0.09352, allocations: 101.6 kB / 466.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.09355, allocations: 51.41 kB / 466.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.428e-05/0.09362, allocations: 105.8 kB / 466.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.09364, allocations: 25.7 kB / 466.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.988e-05/0.09368, allocations: 88.12 kB / 466.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.09372, allocations: 23.64 kB / 466.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.09376, allocations: 21.72 kB / 466.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.119e-05/0.09385, allocations: 322.8 kB / 466.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.784e-05/0.0939, allocations: 12 kB / 466.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.559e-05/0.09394, allocations: 19.98 kB / 466.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.192e-05/0.09402, allocations: 52.8 kB / 466.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.09403, allocations: 0 / 466.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001187/0.09416, allocations: 81.62 kB / 467 MB, free: 9.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.09418, allocations: 7.938 kB / 467 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.09418, allocations: 0 / 467 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.906e-06/0.0942, allocations: 8.688 kB / 467 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.09431, allocations: 8 kB / 467 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.738e-06/0.09432, allocations: 0 / 467 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.228e-05/0.09436, allocations: 0 / 467 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.09438, allocations: 3.984 kB / 467 MB, free: 9.574 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 6.563e-05/0.09445, allocations: 118.4 kB / 467.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.415e-05/0.09447, allocations: 7.844 kB / 467.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.09465, allocations: 106 kB / 467.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.09467, allocations: 8 kB / 467.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.09468, allocations: 0 / 467.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.09468, allocations: 3.984 kB / 467.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.09482, allocations: 185.6 kB / 467.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.09483, allocations: 0 / 467.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8e-05/0.09491, allocations: 8 kB / 467.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.09492, allocations: 3.938 kB / 467.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.09494, allocations: 8 kB / 467.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.09494, allocations: 0 / 467.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.09495, allocations: 0 / 467.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000148/0.0951, allocations: 124.9 kB / 467.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.712e-05/0.09515, allocations: 84.98 kB / 467.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.09517, allocations: 7.938 kB / 467.7 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.68e-05/0.09522, allocations: 4 kB / 467.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.561e-05/0.09524, allocations: 0 / 467.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.09525, allocations: 4 kB / 467.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.337e-05/0.09529, allocations: 87.27 kB / 467.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09529, allocations: 0 / 467.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001848/0.09548, allocations: 16 kB / 467.8 MB, free: 8.707 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 9.861e-05/0.09559, allocations: 106.5 kB / 467.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001288/0.09572, allocations: 55.91 kB / 468 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.09573, allocations: 4 kB / 468 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.905e-05/0.09579, allocations: 36.12 kB / 468 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.09593, allocations: 8 kB / 468 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002859/0.09622, allocations: 181.9 kB / 468.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.09643, allocations: 0.6926 MB / 468.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.152e-05/0.09646, allocations: 0 / 468.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.0965, allocations: 15.44 kB / 468.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09651, allocations: 0 / 468.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of Templates: time 0.002431/0.09894, allocations: 0.7779 MB / 469.7 MB, free: 6.781 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)