Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") translateModel(HanserModelica.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008847/0.0008848, allocations: 98.48 kB / 16.02 MB, free: 76 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.261/1.261, allocations: 223.3 MB / 240 MB, free: 5.27 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.0009385/0.0009385, allocations: 168.5 kB / 291.3 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03431/0.03431, allocations: 8.8 MB / 351.2 MB, free: 4.551 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.0003279, allocations: 13.41 kB / 414.5 MB, free: 42.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06245/0.06279, allocations: 52.55 MB / 467 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.001087/0.0639, allocations: 0.9939 MB / 468 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 3.863e-05/0.06395, allocations: 3.938 kB / 468 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.022e-05/0.06397, allocations: 4 kB / 468 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.064, allocations: 0 / 468 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.1e-05/0.06406, allocations: 0 / 468 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.081e-05/0.06407, allocations: 0 / 468 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.525e-05/0.06412, allocations: 15.92 kB / 468 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.95e-05/0.06418, allocations: 0 / 468 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.809e-05/0.0642, allocations: 7.938 kB / 468.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.695e-05/0.06424, allocations: 4 kB / 468.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.889e-06/0.06425, allocations: 0 / 468.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.308e-06/0.06426, allocations: 0 / 468.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-06/0.06428, allocations: 0 / 468.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.818e-05/0.06431, allocations: 41.62 kB / 468.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 3.166e-05/0.06435, allocations: 7.922 kB / 468.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.06435, allocations: 0 / 468.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.06436, allocations: 0 / 468.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.505e-06/0.06437, allocations: 0 / 468.1 MB, free: 12.02 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002476/0.06462, allocations: 314 kB / 468.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.06466, allocations: 20.02 kB / 468.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.012e-05/0.06469, allocations: 0.9375 kB / 468.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.06479, allocations: 168.3 kB / 468.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.868e-06/0.06481, allocations: 384 / 468.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-06/0.06483, allocations: 12.31 kB / 468.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.555e-05/0.0649, allocations: 39.98 kB / 468.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.651e-06/0.06491, allocations: 192 / 468.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.06492, allocations: 3.938 kB / 468.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.06493, allocations: 4 kB / 468.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.49e-05/0.06495, allocations: 4 kB / 468.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002675/0.06523, allocations: 471.6 kB / 469.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.331e-05/0.0653, allocations: 173.1 kB / 469.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.706e-05/0.06533, allocations: 84.14 kB / 469.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.06536, allocations: 79.28 kB / 469.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.0654, allocations: 109.9 kB / 469.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.031e-06/0.06541, allocations: 0 / 469.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.094e-05/0.06547, allocations: 29.64 kB / 469.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.06552, allocations: 130.6 kB / 469.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.273e-05/0.0656, allocations: 113.8 kB / 469.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.06562, allocations: 25.7 kB / 469.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.914e-05/0.06566, allocations: 80.14 kB / 469.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-06/0.06567, allocations: 4 kB / 469.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.0657, allocations: 13.72 kB / 469.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.06578, allocations: 314.8 kB / 470.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.532e-06/0.06579, allocations: 0 / 470.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.382e-05/0.06581, allocations: 13.72 kB / 470.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.774e-05/0.06584, allocations: 25.72 kB / 470.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.06585, allocations: 3.938 kB / 470.3 MB, free: 9.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.523e-05/0.06594, allocations: 37.86 kB / 470.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.06596, allocations: 11.92 kB / 470.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.06597, allocations: 4 kB / 470.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.786e-06/0.06599, allocations: 0 / 470.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.896e-05/0.06603, allocations: 8 kB / 470.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.06604, allocations: 4.062 kB / 470.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.075e-05/0.06607, allocations: 4 kB / 470.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-06/0.06607, allocations: 0 / 470.4 MB, free: 9.508 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.695e-05/0.06616, allocations: 193 kB / 470.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.872e-05/0.06621, allocations: 104.9 kB / 470.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.815e-05/0.06626, allocations: 116 kB / 470.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.5e-05/0.06631, allocations: 180.3 kB / 470.9 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.663e-05/0.06636, allocations: 184.2 kB / 471.1 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.504e-05/0.06641, allocations: 176.3 kB / 471.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.06659, allocations: 405.2 kB / 471.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.9e-05/0.06662, allocations: 108.9 kB / 471.8 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.469e-05/0.06665, allocations: 101 kB / 471.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.657e-05/0.06671, allocations: 188.2 kB / 472.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.06676, allocations: 180.2 kB / 472.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-05/0.0668, allocations: 176.3 kB / 472.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-05/0.06685, allocations: 184.2 kB / 472.6 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.854e-05/0.06696, allocations: 312 kB / 472.9 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.06702, allocations: 186.1 kB / 473.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.06708, allocations: 180.3 kB / 473.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.958e-05/0.06716, allocations: 108.9 kB / 473.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.06721, allocations: 184.3 kB / 473.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.06725, allocations: 108.9 kB / 473.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.224e-05/0.06728, allocations: 83.28 kB / 473.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.06729, allocations: 0 / 473.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002241/0.06752, allocations: 0 / 473.7 MB, free: 5.898 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 (0): * Single equations (assignments): 0 * 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 7.97e-05/0.0676, allocations: 178.5 kB / 473.9 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.42e-05/0.06765, allocations: 4 kB / 473.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.06766, allocations: 0 / 473.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.142e-06/0.06767, allocations: 0 / 473.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.06799, allocations: 0.5263 MB / 474.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001775/0.06818, allocations: 195.6 kB / 474.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.06836, allocations: 0.6731 MB / 475.3 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.375e-05/0.06838, allocations: 7.438 kB / 475.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.06839, allocations: 0 / 475.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of Templates: time 0.001378/0.06977, allocations: 400 kB / 475.7 MB, free: 3.852 MB / 302.1 MB make -j1 -f HanserModelica_HanserModelica.Classes.MixedDeclaration.makefile (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & ./HanserModelica_HanserModelica.Classes.MixedDeclaration -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)