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.005521/0.005521, allocations: 96.55 kB / 15.73 MB, free: 5.988 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 / 239.4 MB, free: 4.539 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.001317/0.001318, allocations: 187.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03424/0.03424, allocations: 8.793 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 79.88 kB / 463.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09532, allocations: 51.55 MB / 0.5034 GB, free: 9.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.00242/0.09778, allocations: 1.39 MB / 0.5047 GB, free: 8.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.09892, allocations: 0.8643 MB / 0.5056 GB, free: 7.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.059e-05/0.09896, allocations: 0 / 0.5056 GB, free: 7.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.09923, allocations: 87.61 kB / 0.5056 GB, free: 7.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.501e-05/0.0993, allocations: 19.86 kB / 0.5057 GB, free: 7.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007979/0.1001, allocations: 442 kB / 0.5061 GB, free: 6.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.1002, allocations: 39.8 kB / 0.5061 GB, free: 6.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.1003, allocations: 7.984 kB / 0.5061 GB, free: 6.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.072e-05/0.1003, allocations: 19.92 kB / 0.5062 GB, free: 6.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.495e-05/0.1004, allocations: 7.938 kB / 0.5062 GB, free: 6.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.1004, allocations: 4 kB / 0.5062 GB, free: 6.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002117/0.1006, allocations: 119.9 kB / 0.5063 GB, free: 6.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.688e-06/0.1006, allocations: 3.938 kB / 0.5063 GB, free: 6.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.961e-05/0.1007, allocations: 15.94 kB / 0.5063 GB, free: 6.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002102/0.1009, allocations: 135.5 kB / 0.5064 GB, free: 6.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1009, allocations: 0 / 0.5064 GB, free: 6.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1009, allocations: 0 / 0.5064 GB, free: 6.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.1009, allocations: 0 / 0.5064 GB, free: 6.371 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0008253/0.1018, allocations: 435 kB / 0.5068 GB, free: 5.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.1018, allocations: 8.031 kB / 0.5068 GB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.1018, allocations: 4.938 kB / 0.5069 GB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1019, allocations: 172.3 kB / 0.507 GB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.102, allocations: 8.375 kB / 0.507 GB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.102, allocations: 384 / 0.507 GB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.1021, allocations: 57.94 kB / 0.5071 GB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1021, allocations: 0 / 0.5071 GB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.1021, allocations: 4 kB / 0.5071 GB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1021, allocations: 4 kB / 0.5071 GB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.804e-05/0.1022, allocations: 35.98 kB / 0.5071 GB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002063/0.1024, allocations: 181.7 kB / 0.5073 GB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.1026, allocations: 66.56 kB / 0.5074 GB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.123e-05/0.1026, allocations: 28.97 kB / 0.5074 GB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.1027, allocations: 4 kB / 0.5074 GB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.1027, allocations: 38.44 kB / 0.5074 GB, free: 5.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.1027, allocations: 0 / 0.5074 GB, free: 5.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002195/0.1029, allocations: 101.7 kB / 0.5075 GB, free: 5.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.811e-05/0.103, allocations: 51.41 kB / 0.5076 GB, free: 5.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.251e-05/0.103, allocations: 105.8 kB / 0.5077 GB, free: 4.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.1031, allocations: 33.64 kB / 0.5077 GB, free: 4.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.369e-05/0.1031, allocations: 80.14 kB / 0.5078 GB, free: 4.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.1031, allocations: 27.78 kB / 0.5078 GB, free: 4.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.1032, allocations: 17.72 kB / 0.5078 GB, free: 4.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1033, allocations: 310.8 kB / 0.5081 GB, free: 4.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.197e-05/0.1033, allocations: 31.92 kB / 0.5082 GB, free: 4.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.556e-05/0.1034, allocations: 16 kB / 0.5082 GB, free: 4.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.814e-05/0.1035, allocations: 52.8 kB / 0.5082 GB, free: 4.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1035, allocations: 0 / 0.5082 GB, free: 4.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001241/0.1036, allocations: 81.64 kB / 0.5083 GB, free: 4.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.1036, allocations: 7.938 kB / 0.5083 GB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.1036, allocations: 0 / 0.5083 GB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.1037, allocations: 3.984 kB / 0.5083 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.625e-05/0.1038, allocations: 8 kB / 0.5083 GB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1038, allocations: 0 / 0.5083 GB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.25e-05/0.1038, allocations: 8 kB / 0.5083 GB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.1038, allocations: 0 / 0.5083 GB, free: 4.203 MB / 350.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.998e-05/0.1039, allocations: 125.7 kB / 0.5084 GB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.395e-05/0.1039, allocations: 11.88 kB / 0.5085 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.1041, allocations: 102 kB / 0.5086 GB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1041, allocations: 0.6875 kB / 0.5086 GB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1041, allocations: 4 kB / 0.5086 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1042, allocations: 0 / 0.5086 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.1043, allocations: 185.6 kB / 0.5087 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1043, allocations: 0 / 0.5087 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.092e-05/0.1044, allocations: 19.98 kB / 0.5088 GB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1044, allocations: 3.938 kB / 0.5088 GB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.1044, allocations: 3.938 kB / 0.5088 GB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1044, allocations: 0 / 0.5088 GB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1044, allocations: 4 kB / 0.5088 GB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001509/0.1046, allocations: 109.1 kB / 0.5089 GB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.1046, allocations: 92.98 kB / 0.509 GB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.1046, allocations: 0 / 0.509 GB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.397e-05/0.1047, allocations: 7.938 kB / 0.509 GB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.317e-05/0.1047, allocations: 7.984 kB / 0.509 GB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.1047, allocations: 0 / 0.509 GB, free: 3.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.984e-05/0.1048, allocations: 79.28 kB / 0.509 GB, free: 3.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1048, allocations: 0 / 0.509 GB, free: 3.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001879/0.105, allocations: 19.98 kB / 0.5091 GB, free: 3.336 MB / 350.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.0001174/0.1051, allocations: 119.2 kB / 0.5092 GB, free: 3.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001405/0.1052, allocations: 47.98 kB / 0.5092 GB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1052, allocations: 0 / 0.5092 GB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.402e-05/0.1053, allocations: 35.92 kB / 0.5093 GB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.1054, allocations: 9.25 kB / 0.5093 GB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003096/0.1058, allocations: 156.3 kB / 0.5094 GB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.106, allocations: 0.6844 MB / 0.5101 GB, free: 2.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.309e-05/0.106, allocations: 11.92 kB / 0.5101 GB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/0.1061, allocations: 11.44 kB / 0.5101 GB, free: 2.207 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1061, allocations: 4 kB / 0.5101 GB, free: 2.203 MB / 350.1 MB Notification: Performance of Templates: time 0.00279/0.1089, allocations: 0.8126 MB / 0.5109 GB, free: 1.395 MB / 350.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)