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.001591/0.001591, allocations: 106 kB / 16.27 MB, free: 5.949 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.434/1.434, allocations: 222.9 MB / 239.9 MB, free: 4.602 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.00246/0.00246, allocations: 196.4 kB / 290.2 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03553/0.03553, allocations: 8.789 MB / 349.2 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 82.59 kB / 411.7 MB, free: 42.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08854, allocations: 51.57 MB / 463.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002574/0.09116, allocations: 1.383 MB / 464.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.0925, allocations: 0.8643 MB / 465.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.986e-05/0.09256, allocations: 0 / 465.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003077/0.0929, allocations: 91.61 kB / 465.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.555e-05/0.09298, allocations: 7.922 kB / 465.7 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000865/0.09385, allocations: 446 kB / 466.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.09401, allocations: 35.86 kB / 466.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.448e-05/0.09407, allocations: 8 kB / 466.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.357e-05/0.09415, allocations: 15.92 kB / 466.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.721e-05/0.0942, allocations: 15.92 kB / 466.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.09422, allocations: 3.938 kB / 466.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.09449, allocations: 111.9 kB / 466.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.522e-05/0.09452, allocations: 11.92 kB / 466.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.862e-05/0.09456, allocations: 15.88 kB / 466.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.0948, allocations: 123.7 kB / 466.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.09481, allocations: 0 / 466.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09482, allocations: 3.938 kB / 466.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.09484, allocations: 8 kB / 466.4 MB, free: 11.21 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.0009723/0.09582, allocations: 423.6 kB / 466.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.09587, allocations: 12.03 kB / 466.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.09592, allocations: 4.844 kB / 466.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.09606, allocations: 168.3 kB / 467 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.09608, allocations: 384 / 467 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.0961, allocations: 4.375 kB / 467 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.09625, allocations: 69.98 kB / 467.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.09627, allocations: 0 / 467.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.09628, allocations: 0 / 467.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.09629, allocations: 0 / 467.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.0964, allocations: 39.92 kB / 467.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002115/0.09662, allocations: 181.6 kB / 467.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.09681, allocations: 70.55 kB / 467.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.89e-05/0.09687, allocations: 24.98 kB / 467.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.0969, allocations: 4 kB / 467.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.09694, allocations: 42.48 kB / 467.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.09695, allocations: 0 / 467.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002655/0.09722, allocations: 97.62 kB / 467.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.09727, allocations: 51.41 kB / 467.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.513e-05/0.09735, allocations: 105.8 kB / 467.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.09738, allocations: 25.7 kB / 467.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.253e-05/0.09742, allocations: 96.12 kB / 467.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.09746, allocations: 15.66 kB / 467.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.09751, allocations: 21.7 kB / 467.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.09762, allocations: 318.8 kB / 468.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.489e-05/0.0977, allocations: 16 kB / 468.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.633e-05/0.09774, allocations: 19.92 kB / 468.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.634e-05/0.09784, allocations: 48.86 kB / 468.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.09784, allocations: 0 / 468.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001251/0.09797, allocations: 82.25 kB / 468.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.098, allocations: 11.94 kB / 468.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.09801, allocations: 0 / 468.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.09803, allocations: 4 kB / 468.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.09815, allocations: 16.05 kB / 468.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.09816, allocations: 0 / 468.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.433e-05/0.09821, allocations: 0 / 468.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-06/0.09822, allocations: 4 kB / 468.4 MB, free: 9.051 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 9.527e-05/0.09833, allocations: 122.4 kB / 468.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.09835, allocations: 7.844 kB / 468.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002047/0.09856, allocations: 110 kB / 468.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.09857, allocations: 4 kB / 468.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.09858, allocations: 0 / 468.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.09859, allocations: 0 / 468.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.09874, allocations: 189.6 kB / 468.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.09875, allocations: 0 / 468.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.116e-05/0.09883, allocations: 8 kB / 468.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.09885, allocations: 3.938 kB / 468.8 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.09886, allocations: 4 kB / 468.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.09887, allocations: 0 / 468.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.09888, allocations: 7.984 kB / 468.8 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001611/0.09904, allocations: 117 kB / 468.9 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.501e-05/0.0991, allocations: 84.98 kB / 469 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.09912, allocations: 0 / 469 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.548e-05/0.09917, allocations: 0 / 469 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.234e-05/0.0992, allocations: 7.984 kB / 469 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.09921, allocations: 4 kB / 469 MB, free: 8.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.166e-05/0.09926, allocations: 87.28 kB / 469.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09926, allocations: 0 / 469.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.09949, allocations: 16 kB / 469.1 MB, free: 8.188 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.0001486/0.09965, allocations: 107.2 kB / 469.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001645/0.09982, allocations: 71.91 kB / 469.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.09983, allocations: 0 / 469.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.849e-05/0.09988, allocations: 24 kB / 469.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.1001, allocations: 11.98 kB / 469.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003798/0.1004, allocations: 201.8 kB / 469.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.1008, allocations: 0.6807 MB / 470.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.13e-05/0.1008, allocations: 11.44 kB / 470.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1009, allocations: 0 / 470.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of Templates: time 0.00241/0.1033, allocations: 0.9331 MB / 471.2 MB, free: 6.086 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)