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.005286/0.005286, allocations: 168.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03754/0.03754, allocations: 8.796 MB / 24.65 MB, free: 4.125 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.2 MB / 250.7 MB, free: 6.59 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.0009767/0.0009765, allocations: 91.3 kB / 304 MB, free: 4.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003771, allocations: 12 kB / 367.1 MB, free: 4.867 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2887, allocations: 52.54 MB / 419.7 MB, free: 48.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09433/0.3831, allocations: 77.92 MB / 497.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.3833, allocations: 59.98 kB / 497.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007478/0.3908, allocations: 3.18 MB / 0.4891 GB, free: 7.918 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3908, allocations: 0 / 0.4891 GB, free: 7.918 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3909, allocations: 0 / 0.4891 GB, free: 7.918 MB / 362.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.0005542/0.3914, allocations: 387.2 kB / 0.4895 GB, free: 7.492 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3915, allocations: 8.562 kB / 0.4895 GB, free: 7.484 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.73e-05/0.3915, allocations: 30.56 kB / 0.4895 GB, free: 7.445 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.584e-05/0.3915, allocations: 7.953 kB / 0.4895 GB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.3917, allocations: 174.8 kB / 0.4897 GB, free: 7.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.3917, allocations: 4 kB / 0.4897 GB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.3917, allocations: 4 kB / 0.4897 GB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.3918, allocations: 49.69 kB / 0.4897 GB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.3919, allocations: 0 / 0.4897 GB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.3919, allocations: 0 / 0.4897 GB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.3919, allocations: 3.953 kB / 0.4897 GB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.201e-05/0.392, allocations: 39.92 kB / 0.4898 GB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002098/0.3922, allocations: 181.7 kB / 0.49 GB, free: 6.898 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.3924, allocations: 70.55 kB / 0.49 GB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.3924, allocations: 7.984 kB / 0.49 GB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.3924, allocations: 30.56 kB / 0.4901 GB, free: 6.773 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.3924, allocations: 0 / 0.4901 GB, free: 6.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002385/0.3927, allocations: 101.7 kB / 0.4902 GB, free: 6.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.3927, allocations: 51.41 kB / 0.4902 GB, free: 6.605 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.348e-05/0.3928, allocations: 97.25 kB / 0.4903 GB, free: 6.504 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.3928, allocations: 33.64 kB / 0.4903 GB, free: 6.465 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.96e-05/0.3929, allocations: 84.12 kB / 0.4904 GB, free: 6.379 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.204e-05/0.3929, allocations: 19.72 kB / 0.4904 GB, free: 6.359 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.3929, allocations: 0 / 0.4904 GB, free: 6.359 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.393, allocations: 322.8 kB / 0.4907 GB, free: 6.035 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.3931, allocations: 15.98 kB / 0.4908 GB, free: 6.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.989e-05/0.3931, allocations: 16.25 kB / 0.4908 GB, free: 6.004 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.73e-05/0.3932, allocations: 28.12 kB / 0.4908 GB, free: 5.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3932, allocations: 4 kB / 0.4908 GB, free: 5.973 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001284/0.3933, allocations: 77.62 kB / 0.4909 GB, free: 5.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3933, allocations: 4 kB / 0.4909 GB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3934, allocations: 0 / 0.4909 GB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.3934, allocations: 3.938 kB / 0.4909 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.3935, allocations: 11.98 kB / 0.4909 GB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.3935, allocations: 0 / 0.4909 GB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.993e-05/0.3936, allocations: 15.84 kB / 0.4909 GB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.3936, allocations: 0 / 0.4909 GB, free: 5.855 MB / 362.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 () * 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.135e-05/0.3937, allocations: 117.8 kB / 0.491 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.087e-05/0.3937, allocations: 4 kB / 0.491 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001884/0.3939, allocations: 106 kB / 0.4911 GB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3939, allocations: 0 / 0.4911 GB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3939, allocations: 0 / 0.4911 GB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3939, allocations: 4 kB / 0.4911 GB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.394, allocations: 189.5 kB / 0.4913 GB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.394, allocations: 0 / 0.4913 GB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.316e-05/0.3941, allocations: 12 kB / 0.4913 GB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3941, allocations: 0 / 0.4913 GB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.3942, allocations: 7.984 kB / 0.4913 GB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3942, allocations: 0 / 0.4913 GB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3942, allocations: 0 / 0.4913 GB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001575/0.3943, allocations: 117 kB / 0.4914 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.489e-05/0.3944, allocations: 85.02 kB / 0.4915 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.3944, allocations: 0 / 0.4915 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.678e-05/0.3945, allocations: 3.938 kB / 0.4915 GB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.297e-05/0.3945, allocations: 11.98 kB / 0.4915 GB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.3945, allocations: 4 kB / 0.4915 GB, free: 5.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.222e-05/0.3945, allocations: 83.34 kB / 0.4916 GB, free: 5.027 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3945, allocations: 0 / 0.4916 GB, free: 5.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001835/0.3947, allocations: 16 kB / 0.4916 GB, free: 5.012 MB / 362.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 () * 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.0004438/0.3952, allocations: 0.6631 MB / 0.4923 GB, free: 4.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.3953, allocations: 51.98 kB / 0.4923 GB, free: 4.266 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3953, allocations: 0 / 0.4923 GB, free: 4.266 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.879e-05/0.3954, allocations: 35.92 kB / 0.4924 GB, free: 4.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.862e-05/0.3955, allocations: 0 / 0.4924 GB, free: 4.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004287/0.3959, allocations: 236.6 kB / 0.4926 GB, free: 3.957 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3962, allocations: 0.6848 MB / 0.4933 GB, free: 3.242 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.805e-05/0.3962, allocations: 8 kB / 0.4933 GB, free: 3.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.939e-05/0.3963, allocations: 15.44 kB / 0.4933 GB, free: 3.223 MB / 362.7 MB Notification: Performance of SimCode: time 2.635e-06/0.3963, allocations: 0 / 0.4933 GB, free: 3.223 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01153/0.4078, allocations: 1.691 MB / 0.4949 GB, free: 1.68 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.408, allocations: 170.1 kB / 0.4951 GB, free: 1.445 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.422/1.83, allocations: 0 / 0.4951 GB, free: 1.445 MB / 362.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)