Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",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.007622/0.007622, allocations: 169.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.05404/0.05404, allocations: 8.796 MB / 24.65 MB, free: 4.113 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.268/1.268, allocations: 223.1 MB / 250.7 MB, free: 6.578 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.0009083/0.0009084, allocations: 109.9 kB / 304 MB, free: 4.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003802, allocations: 12 kB / 367.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2443, allocations: 52.53 MB / 419.7 MB, free: 48.14 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09008/0.3344, allocations: 76.56 MB / 496.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.3346, allocations: 64.81 kB / 496.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.000805/0.3354, allocations: 453.5 kB / 496.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3355, allocations: 2.406 kB / 496.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.3355, allocations: 0 / 496.8 MB, free: 12.02 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000244/0.3357, allocations: 321.9 kB / 497.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.3358, allocations: 8.562 kB / 497.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.255e-05/0.3358, allocations: 38.56 kB / 497.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.075e-05/0.3358, allocations: 13.83 kB / 497.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.336, allocations: 159.1 kB / 497.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.336, allocations: 3.984 kB / 497.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.336, allocations: 4 kB / 497.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.704e-05/0.3361, allocations: 41.81 kB / 497.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3361, allocations: 4 kB / 497.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-06/0.3361, allocations: 0 / 497.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3361, allocations: 7.891 kB / 497.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.79e-05/0.3361, allocations: 7.938 kB / 497.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000285/0.3364, allocations: 469.4 kB / 497.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.233e-05/0.3365, allocations: 169.6 kB / 498 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.3365, allocations: 76.28 kB / 498 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.3366, allocations: 116.8 kB / 498.2 MB, free: 10.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 8.22e-07/0.3366, allocations: 0 / 498.2 MB, free: 10.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 5.636e-05/0.3366, allocations: 33.66 kB / 498.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.3367, allocations: 126.7 kB / 498.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.209e-05/0.3368, allocations: 96.94 kB / 498.4 MB, free: 10.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.3368, allocations: 30.8 kB / 498.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.3368, allocations: 91.97 kB / 498.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.733e-06/0.3368, allocations: 0 / 498.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-06/0.3369, allocations: 3.375 kB / 498.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.376e-05/0.3369, allocations: 314.8 kB / 498.8 MB, free: 9.723 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.826e-06/0.337, allocations: 4 kB / 498.8 MB, free: 9.719 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.237e-05/0.337, allocations: 9.719 kB / 498.9 MB, free: 9.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.016e-05/0.337, allocations: 11.94 kB / 498.9 MB, free: 9.691 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.337, allocations: 4.062 kB / 498.9 MB, free: 9.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.434e-05/0.3371, allocations: 37.69 kB / 498.9 MB, free: 9.645 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.3371, allocations: 6.812 kB / 498.9 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.3371, allocations: 4 kB / 498.9 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.3371, allocations: 3.953 kB / 498.9 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.889e-05/0.3372, allocations: 4 kB / 498.9 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.3372, allocations: 3.938 kB / 498.9 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.3372, allocations: 0 / 498.9 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-06/0.3372, allocations: 0 / 498.9 MB, free: 9.625 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 7.601e-05/0.3373, allocations: 193.2 kB / 499.1 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/0.3374, allocations: 108.9 kB / 499.2 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.014e-05/0.3374, allocations: 112 kB / 499.3 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.726e-05/0.3375, allocations: 176.3 kB / 499.5 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.006e-05/0.3375, allocations: 180.2 kB / 499.7 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.868e-05/0.3376, allocations: 188.2 kB / 499.9 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.3378, allocations: 401.2 kB / 0.4885 GB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.03e-05/0.3378, allocations: 104.9 kB / 0.4886 GB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.626e-05/0.3378, allocations: 108.9 kB / 0.4887 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.878e-05/0.3379, allocations: 184.3 kB / 0.4889 GB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.3379, allocations: 184.5 kB / 0.4891 GB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.828e-05/0.338, allocations: 184.3 kB / 0.4893 GB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.413e-05/0.338, allocations: 180.2 kB / 0.4894 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.3382, allocations: 307.8 kB / 0.4897 GB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.163e-05/0.3382, allocations: 186 kB / 0.4899 GB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.3383, allocations: 180.3 kB / 0.4901 GB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.49e-05/0.3384, allocations: 104.9 kB / 0.4902 GB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.3384, allocations: 184.2 kB / 0.4904 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.3385, allocations: 105 kB / 0.4905 GB, free: 6.102 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.633e-05/0.3385, allocations: 87.48 kB / 0.4905 GB, free: 6.016 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.352e-06/0.3385, allocations: 0 / 0.4905 GB, free: 6.016 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000197/0.3387, allocations: 3.938 kB / 0.4905 GB, free: 6.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 (0): * Single equations (assignments): 0 * 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.0002926/0.339, allocations: 0.8136 MB / 0.4913 GB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 4.592e-05/0.3391, allocations: 0 / 0.4913 GB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3391, allocations: 4 kB / 0.4913 GB, free: 5.168 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.213e-06/0.3391, allocations: 3.938 kB / 0.4913 GB, free: 5.164 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.3393, allocations: 0.5226 MB / 0.4919 GB, free: 4.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005091/0.3399, allocations: 0.5505 MB / 0.4924 GB, free: 4.031 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.3401, allocations: 0.6809 MB / 0.4931 GB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.875e-05/0.3401, allocations: 0 / 0.4931 GB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.414e-05/0.3401, allocations: 11.44 kB / 0.4931 GB, free: 3.312 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3401, allocations: 0 / 0.4931 GB, free: 3.312 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01111/0.3512, allocations: 0.7947 MB / 0.4938 GB, free: 2.637 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/0.3514, allocations: 163.7 kB / 0.494 GB, free: 2.398 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.387/1.739, allocations: 3.938 kB / 0.494 GB, free: 2.395 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Classes_MixedDeclaration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)