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.001111/0.001111, allocations: 117.7 kB / 16.37 MB, free: 6.016 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.313/1.313, allocations: 222.9 MB / 240 MB, free: 4.398 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.001261/0.001261, allocations: 188.5 kB / 290.3 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03434, allocations: 8.797 MB / 349.3 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 79.48 kB / 412.5 MB, free: 41.67 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.0879, allocations: 51.57 MB / 464.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002303/0.09024, allocations: 1.258 MB / 465.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 4.439e-05/0.0903, allocations: 0 / 465.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.71e-05/0.09033, allocations: 4 kB / 465.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.701e-05/0.09038, allocations: 3.938 kB / 465.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.576e-05/0.09044, allocations: 4 kB / 465.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.439e-05/0.09046, allocations: 0 / 465.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.237e-05/0.09052, allocations: 15.88 kB / 465.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.82e-05/0.09059, allocations: 3.984 kB / 465.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.741e-05/0.09061, allocations: 4 kB / 465.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.478e-05/0.09065, allocations: 3.984 kB / 465.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.09067, allocations: 0 / 465.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.873e-06/0.09068, allocations: 3.938 kB / 465.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.4e-05/0.0907, allocations: 7.938 kB / 465.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 1.783e-05/0.09072, allocations: 4 kB / 465.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.985e-05/0.09078, allocations: 7.938 kB / 465.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.09079, allocations: 3.984 kB / 465.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09079, allocations: 4 kB / 465.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.0908, allocations: 0 / 465.4 MB, free: 12.18 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.0003023/0.09111, allocations: 315.5 kB / 465.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.09115, allocations: 8.031 kB / 465.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.09118, allocations: 8.938 kB / 465.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.09129, allocations: 164.4 kB / 465.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.09131, allocations: 8.359 kB / 465.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-06/0.09132, allocations: 384 / 465.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.389e-05/0.0914, allocations: 47.92 kB / 466 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.09141, allocations: 192 / 466 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/0.09143, allocations: 3.938 kB / 466 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.09144, allocations: 4 kB / 466 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.654e-05/0.09146, allocations: 4 kB / 466 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003133/0.09177, allocations: 479.6 kB / 466.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.692e-05/0.09186, allocations: 173.1 kB / 466.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.73e-05/0.09189, allocations: 80.14 kB / 466.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.09192, allocations: 75.28 kB / 466.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.09197, allocations: 109.8 kB / 466.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.09197, allocations: 0 / 466.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.435e-05/0.09204, allocations: 37.55 kB / 466.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.0921, allocations: 126.7 kB / 467 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.348e-05/0.09219, allocations: 105.8 kB / 467.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.837e-06/0.0922, allocations: 25.7 kB / 467.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.218e-05/0.09226, allocations: 92.05 kB / 467.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.615e-06/0.09227, allocations: 0 / 467.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-05/0.0923, allocations: 13.72 kB / 467.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.44e-05/0.0924, allocations: 314.8 kB / 467.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.09241, allocations: 0 / 467.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.43e-05/0.09243, allocations: 17.72 kB / 467.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.049e-05/0.09246, allocations: 21.72 kB / 467.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.09247, allocations: 3.938 kB / 467.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.783e-05/0.09257, allocations: 41.64 kB / 467.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.09259, allocations: 8 kB / 467.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.09259, allocations: 0 / 467.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.09261, allocations: 3.984 kB / 467.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.149e-05/0.09266, allocations: 8.188 kB / 467.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.09267, allocations: 0 / 467.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.002e-05/0.09269, allocations: 7.938 kB / 467.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.09271, allocations: 8.062 kB / 467.7 MB, free: 9.664 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 8.082e-05/0.09279, allocations: 193 kB / 467.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.09285, allocations: 105 kB / 468 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.154e-05/0.0929, allocations: 112 kB / 468.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.284e-05/0.09296, allocations: 180.2 kB / 468.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-05/0.09301, allocations: 176.3 kB / 468.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-05/0.09308, allocations: 184.2 kB / 468.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.09327, allocations: 409.2 kB / 469 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.219e-05/0.09331, allocations: 104.9 kB / 469.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.799e-05/0.09334, allocations: 105 kB / 469.2 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.116e-05/0.0934, allocations: 176.3 kB / 469.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.272e-05/0.09346, allocations: 184.2 kB / 469.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.208e-05/0.09351, allocations: 188.3 kB / 469.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.875e-05/0.09357, allocations: 184.2 kB / 469.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.09368, allocations: 303.8 kB / 470.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.325e-05/0.09375, allocations: 189.9 kB / 470.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.27e-05/0.09381, allocations: 180.3 kB / 470.6 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.349e-05/0.09389, allocations: 105.2 kB / 470.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.326e-05/0.09395, allocations: 180.3 kB / 470.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.09398, allocations: 105 kB / 471 MB, free: 6.148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.735e-05/0.09402, allocations: 91.2 kB / 471.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09403, allocations: 0 / 471.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002087/0.09424, allocations: 8 kB / 471.1 MB, free: 6.051 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 8.838e-05/0.09433, allocations: 166.5 kB / 471.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.328e-05/0.09439, allocations: 4 kB / 471.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.0944, allocations: 0 / 471.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.132e-06/0.09441, allocations: 0 / 471.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.09474, allocations: 465.2 kB / 471.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001786/0.09493, allocations: 168.1 kB / 471.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.09514, allocations: 0.6729 MB / 472.5 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.761e-05/0.09516, allocations: 0 / 472.5 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.587e-05/0.09519, allocations: 7.438 kB / 472.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09519, allocations: 0 / 472.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of Templates: time 0.001699/0.0969, allocations: 213.3 kB / 472.7 MB, free: 4.309 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)