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.001131/0.001131, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.31/1.31, allocations: 222.9 MB / 239 MB, free: 4.645 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.001607/0.001607, allocations: 184.4 kB / 289.3 MB, free: 2.387 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03252/0.03252, allocations: 8.806 MB / 348.2 MB, free: 4.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 76.77 kB / 410.6 MB, free: 42.3 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1072, allocations: 51.56 MB / 462.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002403/0.1096, allocations: 1.438 MB / 463.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.1108, allocations: 0.8567 MB / 464.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.914e-05/0.1109, allocations: 4 kB / 464.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.1112, allocations: 83.73 kB / 464.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.841e-05/0.1113, allocations: 3.938 kB / 464.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00079/0.1121, allocations: 424.3 kB / 464.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.1122, allocations: 31.88 kB / 465 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.579e-05/0.1123, allocations: 7.984 kB / 465 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.906e-05/0.1124, allocations: 15.88 kB / 465 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.324e-05/0.1124, allocations: 15.92 kB / 465 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.1125, allocations: 4 kB / 465 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002203/0.1127, allocations: 115.9 kB / 465.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.277e-05/0.1127, allocations: 3.938 kB / 465.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.84e-05/0.1127, allocations: 19.91 kB / 465.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.113, allocations: 127.7 kB / 465.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.113, allocations: 0 / 465.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.113, allocations: 3.938 kB / 465.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.113, allocations: 0 / 465.3 MB, free: 11.61 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.0009112/0.1139, allocations: 435.5 kB / 465.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.114, allocations: 8.031 kB / 465.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.63e-05/0.114, allocations: 8.844 kB / 465.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.1141, allocations: 164.3 kB / 465.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1142, allocations: 4.375 kB / 465.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.1142, allocations: 384 / 465.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.1143, allocations: 61.98 kB / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.1143, allocations: 0 / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.1144, allocations: 4 kB / 465.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1144, allocations: 4 kB / 465.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.082e-05/0.1145, allocations: 39.91 kB / 466 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000213/0.1147, allocations: 181.5 kB / 466.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001748/0.1149, allocations: 66.62 kB / 466.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.191e-05/0.1149, allocations: 28.98 kB / 466.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.1149, allocations: 0 / 466.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.115, allocations: 38.5 kB / 466.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 7.72e-07/0.115, allocations: 0 / 466.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002395/0.1152, allocations: 105.6 kB / 466.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.1153, allocations: 51.41 kB / 466.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.162e-05/0.1153, allocations: 106.1 kB / 466.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.1154, allocations: 25.7 kB / 466.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.948e-05/0.1154, allocations: 88.12 kB / 466.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.523e-05/0.1155, allocations: 19.66 kB / 466.7 MB, free: 10 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.1155, allocations: 21.72 kB / 466.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.609e-05/0.1156, allocations: 318.8 kB / 467 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.989e-05/0.1156, allocations: 16 kB / 467 MB, free: 9.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.386e-05/0.1157, allocations: 23.92 kB / 467.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.389e-05/0.1158, allocations: 48.86 kB / 467.1 MB, free: 9.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1158, allocations: 3.938 kB / 467.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001311/0.1159, allocations: 77.69 kB / 467.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.1159, allocations: 7.938 kB / 467.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.1159, allocations: 0 / 467.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.116, allocations: 4 kB / 467.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.1161, allocations: 8 kB / 467.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1161, allocations: 0 / 467.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.689e-05/0.1161, allocations: 7.984 kB / 467.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.1162, allocations: 0 / 467.2 MB, free: 9.453 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.314e-05/0.1162, allocations: 118.4 kB / 467.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.1163, allocations: 7.844 kB / 467.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002101/0.1165, allocations: 106 kB / 467.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1165, allocations: 7.938 kB / 467.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1165, allocations: 0 / 467.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1165, allocations: 7.984 kB / 467.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.1167, allocations: 177.6 kB / 467.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1167, allocations: 0 / 467.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.952e-05/0.1167, allocations: 12 kB / 467.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.1168, allocations: 3.938 kB / 467.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.1168, allocations: 4.438 kB / 467.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1168, allocations: 0 / 467.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.1168, allocations: 0 / 467.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.117, allocations: 124.9 kB / 467.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.117, allocations: 92.98 kB / 467.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.117, allocations: 4 kB / 467.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.632e-05/0.1171, allocations: 0 / 467.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.468e-05/0.1171, allocations: 4 kB / 467.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.1171, allocations: 0 / 467.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.306e-05/0.1172, allocations: 87.27 kB / 467.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1172, allocations: 0 / 467.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000195/0.1174, allocations: 12 kB / 468 MB, free: 8.594 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.0001306/0.1175, allocations: 115.2 kB / 468.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.1177, allocations: 55.86 kB / 468.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1177, allocations: 4 kB / 468.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.139e-05/0.1177, allocations: 35.94 kB / 468.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.1179, allocations: 2.031 kB / 468.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003404/0.1182, allocations: 196.5 kB / 468.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.1185, allocations: 0.6846 MB / 469 MB, free: 7.449 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.411e-05/0.1185, allocations: 4 kB / 469 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.1186, allocations: 11.44 kB / 469.1 MB, free: 7.438 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1186, allocations: 0 / 469.1 MB, free: 7.438 MB / 302.1 MB Notification: Performance of Templates: time 0.002969/0.1216, allocations: 0.8008 MB / 469.9 MB, free: 6.637 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)