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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0422/0.0422, allocations: 8.709 MB / 16.78 MB, free: 3.391 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 221.5 MB / 240.9 MB, free: 13.21 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009597/0.0009595, allocations: 93.97 kB / 293.9 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.664e-05/1.676e-05, allocations: 0 / 352.7 MB, free: 1.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1209, allocations: 52.54 MB / 405.3 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3623/0.4832, allocations: 77.18 MB / 482.5 MB, free: 9.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.4835, allocations: 67.97 kB / 482.5 MB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006615/0.4901, allocations: 3.103 MB / 485.6 MB, free: 7.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4901, allocations: 0 / 485.6 MB, free: 7.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.4901, allocations: 0 / 485.6 MB, free: 7.449 MB / 346.7 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.0004847/0.4906, allocations: 383.2 kB / 486 MB, free: 7.043 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.4907, allocations: 15.97 kB / 486 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.4907, allocations: 12.62 kB / 486 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.4909, allocations: 167.3 kB / 486.2 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.4909, allocations: 0 / 486.2 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.4909, allocations: 4 kB / 486.2 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001081/0.491, allocations: 28.69 kB / 486.2 MB, free: 6.801 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.815e-05/0.4911, allocations: 51.86 kB / 486.3 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.4911, allocations: 0 / 486.3 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.4911, allocations: 11.95 kB / 486.3 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4911, allocations: 0 / 486.3 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.4913, allocations: 153.2 kB / 486.4 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.4915, allocations: 73.88 kB / 486.5 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.697e-05/0.4915, allocations: 23.92 kB / 486.5 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.4916, allocations: 0 / 486.5 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.4916, allocations: 34.56 kB / 486.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.4916, allocations: 0 / 486.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000181/0.4918, allocations: 77.28 kB / 486.6 MB, free: 6.379 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.148e-05/0.4918, allocations: 51.41 kB / 486.7 MB, free: 6.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/0.4919, allocations: 95.81 kB / 486.8 MB, free: 6.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.4919, allocations: 25.7 kB / 486.8 MB, free: 6.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.4919, allocations: 87.33 kB / 486.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.492, allocations: 16.27 kB / 486.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.492, allocations: 0 / 486.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.007e-05/0.4921, allocations: 322.8 kB / 487.2 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.25e-05/0.4921, allocations: 18.62 kB / 487.2 MB, free: 5.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.688e-05/0.4921, allocations: 14.88 kB / 487.3 MB, free: 5.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.777e-05/0.4922, allocations: 26.05 kB / 487.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4922, allocations: 0 / 487.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.745e-05/0.4923, allocations: 75.5 kB / 487.4 MB, free: 5.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.4923, allocations: 8.625 kB / 487.4 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.4923, allocations: 0.625 kB / 487.4 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.4923, allocations: 0 / 487.4 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.4924, allocations: 8 kB / 487.4 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.4925, allocations: 4 kB / 487.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.258e-05/0.4925, allocations: 0.75 kB / 487.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.4925, allocations: 8.672 kB / 487.4 MB, free: 5.645 MB / 346.7 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 () * 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 5.315e-05/0.4926, allocations: 108.9 kB / 487.5 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.783e-05/0.4927, allocations: 76.47 kB / 487.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.196e-06/0.4927, allocations: 0 / 487.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.4929, allocations: 99.11 kB / 487.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.4929, allocations: 0 / 487.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4929, allocations: 4 kB / 487.7 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4929, allocations: 4.703 kB / 487.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.493, allocations: 166.1 kB / 487.8 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.493, allocations: 0 / 487.8 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.964e-05/0.4931, allocations: 20.98 kB / 487.9 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.4931, allocations: 0 / 487.9 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.4931, allocations: 0 / 487.9 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4931, allocations: 3.938 kB / 487.9 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4932, allocations: 4 kB / 487.9 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.4933, allocations: 108.2 kB / 488 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.393e-05/0.4933, allocations: 85.91 kB / 488 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.4933, allocations: 0 / 488 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.454e-05/0.4934, allocations: 1.25 kB / 488 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.573e-05/0.4934, allocations: 7.984 kB / 488.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.4934, allocations: 4 kB / 488.1 MB, free: 4.883 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.385e-05/0.4935, allocations: 79.28 kB / 488.1 MB, free: 4.805 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4935, allocations: 0 / 488.1 MB, free: 4.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001845/0.4936, allocations: 12 kB / 488.2 MB, free: 4.793 MB / 346.7 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 () * 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.000296/0.4939, allocations: 0.6592 MB / 488.8 MB, free: 4.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001126/0.4941, allocations: 44 kB / 488.9 MB, free: 4.062 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4941, allocations: 0 / 488.9 MB, free: 4.062 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.767e-05/0.4941, allocations: 31.94 kB / 488.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001116/0.4942, allocations: 3.984 kB / 488.9 MB, free: 4.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003032/0.4945, allocations: 109.4 kB / 489 MB, free: 3.887 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.4947, allocations: 0.6885 MB / 489.7 MB, free: 3.172 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.465e-05/0.4947, allocations: 8 kB / 489.7 MB, free: 3.164 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.885e-05/0.4948, allocations: 15.42 kB / 489.7 MB, free: 3.152 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4948, allocations: 0 / 489.7 MB, free: 3.152 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01924/0.514, allocations: 1.214 MB / 490.9 MB, free: 1.984 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.5143, allocations: 140.4 kB / 491.1 MB, free: 1.793 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.507/2.021, allocations: 0.7031 kB / 491.1 MB, free: 1.793 MB / 346.7 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)