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.001192/0.001192, allocations: 108 kB / 15.61 MB, free: 148 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.349/1.349, allocations: 222.9 MB / 239.2 MB, free: 4.629 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.001598/0.001598, allocations: 195.7 kB / 289.5 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03409/0.03409, allocations: 8.797 MB / 348.5 MB, free: 4.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 84.33 kB / 411.1 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1029, allocations: 51.57 MB / 462.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.003158/0.1061, allocations: 1.381 MB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.1076, allocations: 0.8565 MB / 464.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.358e-05/0.1077, allocations: 4 kB / 464.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003108/0.108, allocations: 87.61 kB / 465 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.207e-05/0.1082, allocations: 15.92 kB / 465 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008201/0.109, allocations: 448.4 kB / 465.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.1091, allocations: 39.84 kB / 465.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.926e-05/0.1092, allocations: 3.938 kB / 465.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.693e-05/0.1093, allocations: 15.92 kB / 465.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.178e-05/0.1093, allocations: 11.94 kB / 465.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.1094, allocations: 0 / 465.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.1096, allocations: 127.9 kB / 465.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.1096, allocations: 3.938 kB / 465.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.756e-05/0.1096, allocations: 11.94 kB / 465.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.1099, allocations: 131.6 kB / 465.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1099, allocations: 0 / 465.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1099, allocations: 0 / 465.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1099, allocations: 0 / 465.8 MB, free: 11.28 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.0009284/0.1108, allocations: 427.6 kB / 466.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1109, allocations: 12.03 kB / 466.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.1109, allocations: 8.844 kB / 466.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.1111, allocations: 172.3 kB / 466.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1111, allocations: 384 / 466.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.1111, allocations: 4.375 kB / 466.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.1113, allocations: 58 kB / 466.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1113, allocations: 0 / 466.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.1113, allocations: 3.984 kB / 466.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.1114, allocations: 3.984 kB / 466.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.383e-05/0.1114, allocations: 35.94 kB / 466.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003541/0.1118, allocations: 185.5 kB / 466.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.112, allocations: 66.62 kB / 466.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.043e-05/0.1121, allocations: 28.97 kB / 466.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.1121, allocations: 4 kB / 466.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.1121, allocations: 34.5 kB / 466.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.1121, allocations: 0 / 466.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002474/0.1124, allocations: 101.6 kB / 466.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.1124, allocations: 55.41 kB / 466.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.112e-05/0.1125, allocations: 101.8 kB / 467 MB, free: 9.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1126, allocations: 29.7 kB / 467.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.761e-05/0.1126, allocations: 84.14 kB / 467.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.1127, allocations: 19.64 kB / 467.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.1127, allocations: 21.72 kB / 467.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1128, allocations: 314.8 kB / 467.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.233e-05/0.1129, allocations: 27.92 kB / 467.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.584e-05/0.1129, allocations: 16 kB / 467.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.4e-05/0.113, allocations: 53.42 kB / 467.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.113, allocations: 3.984 kB / 467.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001333/0.1132, allocations: 73.7 kB / 467.7 MB, free: 9.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.1132, allocations: 15.92 kB / 467.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1132, allocations: 0 / 467.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1132, allocations: 0 / 467.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.1133, allocations: 8 kB / 467.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1133, allocations: 0 / 467.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.487e-05/0.1134, allocations: 8 kB / 467.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.1134, allocations: 4 kB / 467.7 MB, free: 9.113 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 8.516e-05/0.1135, allocations: 118.4 kB / 467.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.1135, allocations: 15.78 kB / 467.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002125/0.1137, allocations: 106 kB / 467.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1137, allocations: 0 / 467.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1138, allocations: 0 / 467.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1138, allocations: 0 / 467.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.1139, allocations: 193.6 kB / 468.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1139, allocations: 0 / 468.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.153e-05/0.114, allocations: 11.98 kB / 468.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.114, allocations: 7.938 kB / 468.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.114, allocations: 0 / 468.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.114, allocations: 0 / 468.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1141, allocations: 0 / 468.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001667/0.1142, allocations: 117 kB / 468.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.1143, allocations: 84.98 kB / 468.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/0.1143, allocations: 8 kB / 468.3 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.614e-05/0.1143, allocations: 3.984 kB / 468.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.262e-05/0.1144, allocations: 0 / 468.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.1144, allocations: 4 kB / 468.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.981e-05/0.1144, allocations: 87.34 kB / 468.4 MB, free: 8.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1144, allocations: 0 / 468.4 MB, free: 8.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.1147, allocations: 19.98 kB / 468.5 MB, free: 8.246 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.0001352/0.1148, allocations: 111.2 kB / 468.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.115, allocations: 63.98 kB / 468.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.115, allocations: 0 / 468.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.301e-05/0.115, allocations: 31.92 kB / 468.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.1152, allocations: 8 kB / 468.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003565/0.1156, allocations: 176.2 kB / 468.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.1159, allocations: 0.683 MB / 469.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.573e-05/0.1159, allocations: 11.98 kB / 469.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.499e-05/0.116, allocations: 7.438 kB / 469.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.116, allocations: 4 kB / 469.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of Templates: time 0.003426/0.1194, allocations: 0.7932 MB / 470.3 MB, free: 6.309 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)