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: "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, 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.283/1.283, allocations: 222.9 MB / 239 MB, free: 4.641 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.001276/0.001276, allocations: 192.3 kB / 289.3 MB, free: 2.383 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03429/0.03429, allocations: 8.802 MB / 348.2 MB, free: 4.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 84.12 kB / 410.7 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0696/0.07105, allocations: 51.56 MB / 462.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.00229/0.07338, allocations: 1.441 MB / 463.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.07451, allocations: 0.8489 MB / 464.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.07455, allocations: 0 / 464.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002529/0.07482, allocations: 79.73 kB / 464.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.875e-05/0.07489, allocations: 7.984 kB / 464.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000752/0.07565, allocations: 428.3 kB / 465 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.07578, allocations: 35.86 kB / 465.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.42e-05/0.07582, allocations: 7.938 kB / 465.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.472e-05/0.07589, allocations: 15.98 kB / 465.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.408e-05/0.07593, allocations: 11.92 kB / 465.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.07595, allocations: 4 kB / 465.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001962/0.07615, allocations: 119.8 kB / 465.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.13e-05/0.07617, allocations: 7.922 kB / 465.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.465e-05/0.0762, allocations: 15.94 kB / 465.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.07641, allocations: 123.8 kB / 465.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.07642, allocations: 0 / 465.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.07642, allocations: 0 / 465.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.07643, allocations: 0 / 465.4 MB, free: 11.6 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.0008365/0.07727, allocations: 439.4 kB / 465.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.07732, allocations: 8.031 kB / 465.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.07736, allocations: 38.75 kB / 465.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.266e-05/0.07739, allocations: 0.9375 kB / 465.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.0775, allocations: 176.3 kB / 466 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.07751, allocations: 384 / 466 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.07753, allocations: 384 / 466 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.07766, allocations: 61.8 kB / 466.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.07768, allocations: 4 kB / 466.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.07769, allocations: 0 / 466.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.0777, allocations: 0 / 466.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.671e-05/0.07779, allocations: 35.92 kB / 466.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.07797, allocations: 177.6 kB / 466.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.07814, allocations: 74.62 kB / 466.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.524e-05/0.0782, allocations: 32.97 kB / 466.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.07823, allocations: 0 / 466.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.07826, allocations: 34.5 kB / 466.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.62e-07/0.07826, allocations: 4 kB / 466.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.000221/0.07849, allocations: 97.62 kB / 466.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.07853, allocations: 51.41 kB / 466.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.07861, allocations: 109.8 kB / 466.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.07863, allocations: 25.7 kB / 466.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.748e-05/0.07867, allocations: 84.14 kB / 466.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.07871, allocations: 23.64 kB / 466.8 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.07875, allocations: 17.72 kB / 466.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.281e-05/0.07885, allocations: 318.8 kB / 467.2 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.123e-05/0.0789, allocations: 19.98 kB / 467.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.569e-05/0.07894, allocations: 16 kB / 467.2 MB, free: 9.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.94e-05/0.07903, allocations: 56.84 kB / 467.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.07904, allocations: 0 / 467.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001269/0.07917, allocations: 85.56 kB / 467.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.07919, allocations: 4 kB / 467.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.0792, allocations: 3.984 kB / 467.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.07922, allocations: 0 / 467.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.07933, allocations: 8 kB / 467.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.07934, allocations: 7.938 kB / 467.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.828e-05/0.0794, allocations: 4.594 kB / 467.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.07941, allocations: 0 / 467.4 MB, free: 9.391 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 7.622e-05/0.07949, allocations: 121.8 kB / 467.5 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.07951, allocations: 7.922 kB / 467.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.0797, allocations: 106 kB / 467.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.07972, allocations: 4 kB / 467.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.07972, allocations: 0 / 467.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.07973, allocations: 4 kB / 467.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.07986, allocations: 177.6 kB / 467.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.07987, allocations: 0 / 467.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.723e-05/0.07996, allocations: 19.92 kB / 467.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.07997, allocations: 4 kB / 467.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.07999, allocations: 4 kB / 467.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.08, allocations: 4 kB / 467.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.08, allocations: 0 / 467.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.08016, allocations: 113 kB / 467.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.441e-05/0.0802, allocations: 92.89 kB / 468 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.08023, allocations: 7.984 kB / 468 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.17e-05/0.08029, allocations: 4 kB / 468 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.746e-05/0.08031, allocations: 4 kB / 468 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.08032, allocations: 0 / 468 MB, free: 8.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.847e-05/0.08036, allocations: 91.27 kB / 468.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.283e-06/0.08037, allocations: 0 / 468.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000196/0.08057, allocations: 11.94 kB / 468.1 MB, free: 8.523 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.0003744/0.08095, allocations: 0.667 MB / 468.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000138/0.08111, allocations: 47.98 kB / 468.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.08112, allocations: 0 / 468.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.052e-05/0.08118, allocations: 39.94 kB / 468.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.08132, allocations: 2.031 kB / 468.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004026/0.08173, allocations: 213.9 kB / 469.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.08193, allocations: 0.6884 MB / 469.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.506e-05/0.08197, allocations: 11.98 kB / 469.8 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.568e-05/0.08202, allocations: 15.44 kB / 469.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.08203, allocations: 0 / 469.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01142/0.09345, allocations: 1.846 MB / 471.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/0.09366, allocations: 201.7 kB / 471.8 MB, free: 4.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/1.8, allocations: 0 / 471.8 MB, free: 4.762 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)