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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.001065/0.001065, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.405/1.405, allocations: 223.2 MB / 238.9 MB, free: 5.672 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.001236/0.001236, allocations: 181 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03287/0.03287, allocations: 8.779 MB / 350 MB, free: 4.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003414/0.0003414, allocations: 11.16 kB / 413.2 MB, free: 43.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.08969, allocations: 52.57 MB / 465.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.001395/0.09113, allocations: 1.066 MB / 466.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.09221, allocations: 0.7563 MB / 467.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.227e-05/0.09226, allocations: 0 / 467.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000279/0.09255, allocations: 71.67 kB / 467.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.694e-05/0.09261, allocations: 3.984 kB / 467.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.09333, allocations: 366.7 kB / 468 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.09345, allocations: 31.95 kB / 468 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.589e-05/0.0935, allocations: 4 kB / 468 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.493e-05/0.09358, allocations: 23.91 kB / 468 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.241e-05/0.09364, allocations: 7.938 kB / 468.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.785e-06/0.09365, allocations: 0 / 468.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000291/0.09395, allocations: 103.8 kB / 468.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.09397, allocations: 4 kB / 468.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.932e-05/0.094, allocations: 29.7 kB / 468.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.09417, allocations: 84.02 kB / 468.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.09418, allocations: 0 / 468.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.09418, allocations: 0 / 468.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.0942, allocations: 4 kB / 468.3 MB, free: 10.96 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.0008807/0.09508, allocations: 419.2 kB / 468.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.09513, allocations: 12.03 kB / 468.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.063e-05/0.09517, allocations: 30.56 kB / 468.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.296e-05/0.0952, allocations: 7.859 kB / 468.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.09531, allocations: 167 kB / 468.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.09534, allocations: 3.984 kB / 468.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.09536, allocations: 12 kB / 468.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.09548, allocations: 49.69 kB / 469 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.0955, allocations: 0 / 469 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.09551, allocations: 0 / 469 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.09553, allocations: 3.953 kB / 469 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.1e-05/0.09561, allocations: 35.98 kB / 469 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001946/0.09581, allocations: 181.7 kB / 469.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.09598, allocations: 66.5 kB / 469.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.09601, allocations: 4 kB / 469.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.09604, allocations: 34.56 kB / 469.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.595e-06/0.09605, allocations: 0 / 469.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003151/0.09637, allocations: 105.8 kB / 469.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.09642, allocations: 55.34 kB / 469.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.09653, allocations: 109.9 kB / 469.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.09655, allocations: 25.7 kB / 469.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.714e-05/0.09661, allocations: 92.12 kB / 469.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.239e-05/0.09664, allocations: 19.73 kB / 469.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-06/0.09665, allocations: 0 / 469.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.09684, allocations: 314.8 kB / 470 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.054e-05/0.09688, allocations: 23.98 kB / 470 MB, free: 9.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.429e-05/0.09692, allocations: 16 kB / 470 MB, free: 8.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.855e-05/0.09697, allocations: 20 kB / 470 MB, free: 8.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.09698, allocations: 3.938 kB / 470 MB, free: 8.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001303/0.09712, allocations: 81.59 kB / 470.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.09714, allocations: 4 kB / 470.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.09715, allocations: 4 kB / 470.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.09717, allocations: 0 / 470.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.09729, allocations: 15.92 kB / 470.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.09731, allocations: 0 / 470.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.378e-05/0.09736, allocations: 4 kB / 470.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.09737, allocations: 3.953 kB / 470.2 MB, free: 8.855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.889e-05/0.09746, allocations: 109.8 kB / 470.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.09748, allocations: 7.906 kB / 470.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002007/0.09769, allocations: 106 kB / 470.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.0977, allocations: 0 / 470.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.09771, allocations: 0 / 470.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.09771, allocations: 0 / 470.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.09788, allocations: 193.5 kB / 470.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.09789, allocations: 0 / 470.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.994e-05/0.09797, allocations: 15.94 kB / 470.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.09798, allocations: 3.984 kB / 470.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.098, allocations: 0 / 470.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.098, allocations: 0 / 470.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/0.09802, allocations: 0 / 470.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.09819, allocations: 128.9 kB / 470.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.09824, allocations: 77.11 kB / 470.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.09827, allocations: 8.438 kB / 470.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.395e-05/0.09832, allocations: 0 / 470.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.939e-05/0.09834, allocations: 3.984 kB / 470.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.09836, allocations: 8 kB / 470.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.097e-05/0.0984, allocations: 87.22 kB / 470.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09841, allocations: 4 kB / 470.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001913/0.09861, allocations: 12 kB / 470.9 MB, free: 8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005694/0.09918, allocations: 0.6636 MB / 471.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.09933, allocations: 51.92 kB / 471.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.09934, allocations: 0 / 471.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.928e-05/0.09939, allocations: 31.98 kB / 471.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001069/0.09951, allocations: 4 kB / 471.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004813/0.09999, allocations: 228.1 kB / 471.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.1004, allocations: 0.6887 MB / 472.6 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.258e-05/0.1004, allocations: 7.938 kB / 472.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.659e-05/0.1005, allocations: 11.44 kB / 472.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1005, allocations: 0 / 472.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0122/0.1127, allocations: 1.686 MB / 474.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002354/0.1129, allocations: 178 kB / 474.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.561/1.674, allocations: 0 / 474.4 MB, free: 4.426 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/linux/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) Environment - environmentSimulation: