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.0007307/0.0007307, allocations: 88.2 kB / 16.03 MB, free: 56 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 223.3 MB / 240 MB, free: 5.504 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.0009383/0.0009383, allocations: 180.5 kB / 291.3 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03411/0.03411, allocations: 8.798 MB / 351.2 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003209, allocations: 11.12 kB / 414.5 MB, free: 42.74 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06445/0.06478, allocations: 52.55 MB / 467 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.001189/0.066, allocations: 1.103 MB / 468.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.06705, allocations: 0.8335 MB / 469 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.683e-05/0.06708, allocations: 0 / 469 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.06733, allocations: 75.75 kB / 469 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.379e-05/0.06739, allocations: 11.92 kB / 469.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007159/0.06811, allocations: 430.4 kB / 469.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.06823, allocations: 31.86 kB / 469.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.057e-05/0.06827, allocations: 7.984 kB / 469.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.762e-05/0.06833, allocations: 19.92 kB / 469.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.169e-05/0.06837, allocations: 11.94 kB / 469.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.795e-06/0.06839, allocations: 0 / 469.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.06859, allocations: 119.8 kB / 469.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.328e-06/0.06861, allocations: 3.938 kB / 469.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.06865, allocations: 37.64 kB / 469.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.06878, allocations: 84.09 kB / 469.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.06879, allocations: 0 / 469.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.0688, allocations: 0 / 469.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.06881, allocations: 0 / 469.8 MB, free: 10.36 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.0007846/0.0696, allocations: 435.2 kB / 470.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.06964, allocations: 12.03 kB / 470.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.816e-05/0.06967, allocations: 4.844 kB / 470.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.286e-05/0.06977, allocations: 168.4 kB / 470.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.06979, allocations: 384 / 470.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.0698, allocations: 4.375 kB / 470.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.06993, allocations: 58 kB / 470.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.06994, allocations: 7.984 kB / 470.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.06996, allocations: 4 kB / 470.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.06997, allocations: 0 / 470.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.936e-05/0.07005, allocations: 31.94 kB / 470.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.07022, allocations: 185.7 kB / 470.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.07038, allocations: 66.56 kB / 470.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.302e-05/0.07045, allocations: 28.97 kB / 470.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.07047, allocations: 0 / 470.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.672e-05/0.07049, allocations: 38.5 kB / 470.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.21e-07/0.0705, allocations: 3.938 kB / 470.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002105/0.07072, allocations: 105.5 kB / 470.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.07075, allocations: 51.41 kB / 471 MB, free: 9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.964e-05/0.07082, allocations: 105.8 kB / 471.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.07084, allocations: 25.7 kB / 471.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.09e-05/0.07087, allocations: 84.14 kB / 471.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.07091, allocations: 27.64 kB / 471.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.424e-05/0.07094, allocations: 13.72 kB / 471.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.871e-05/0.07102, allocations: 314.8 kB / 471.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.982e-05/0.07107, allocations: 19.98 kB / 471.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.548e-05/0.07111, allocations: 16 kB / 471.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.968e-05/0.0712, allocations: 48.86 kB / 471.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.07121, allocations: 3.938 kB / 471.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001269/0.07134, allocations: 81.62 kB / 471.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.07136, allocations: 9.656 kB / 471.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-06/0.07137, allocations: 0 / 471.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.07139, allocations: 11.98 kB / 471.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.799e-05/0.07149, allocations: 8 kB / 471.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.07151, allocations: 0 / 471.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.478e-05/0.07156, allocations: 0.6875 kB / 471.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.07157, allocations: 0 / 471.7 MB, free: 8.203 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 7.072e-05/0.07164, allocations: 118.4 kB / 471.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.07166, allocations: 7.844 kB / 471.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.07186, allocations: 114 kB / 472 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.07187, allocations: 4 kB / 472 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.07188, allocations: 0 / 472 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.07189, allocations: 4 kB / 472 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.07202, allocations: 181.6 kB / 472.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.07203, allocations: 0 / 472.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.613e-05/0.07212, allocations: 11.98 kB / 472.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.07213, allocations: 3.938 kB / 472.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.07214, allocations: 8 kB / 472.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.07215, allocations: 0 / 472.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.07215, allocations: 0 / 472.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.07232, allocations: 124.9 kB / 472.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.935e-05/0.07236, allocations: 84.98 kB / 472.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.07238, allocations: 4 kB / 472.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.185e-05/0.07243, allocations: 4 kB / 472.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.947e-05/0.07246, allocations: 3.984 kB / 472.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.07247, allocations: 4 kB / 472.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.379e-05/0.07251, allocations: 83.28 kB / 472.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07251, allocations: 0 / 472.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001984/0.07272, allocations: 19.94 kB / 472.5 MB, free: 7.332 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.0001003/0.07282, allocations: 107.2 kB / 472.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001287/0.07296, allocations: 51.92 kB / 472.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.07297, allocations: 7.938 kB / 472.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.07303, allocations: 31.98 kB / 472.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.07318, allocations: 8 kB / 472.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000293/0.07348, allocations: 232 kB / 472.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.07367, allocations: 0.6888 MB / 473.6 MB, free: 6.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.07371, allocations: 7.438 kB / 473.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.07372, allocations: 4 kB / 473.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of Templates: time 0.001942/0.07567, allocations: 0.9178 MB / 474.5 MB, free: 5.219 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)