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.008553/0.008553, allocations: 169.8 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07261/0.07261, allocations: 8.801 MB / 24.67 MB, free: 4.078 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.298/2.298, allocations: 223.3 MB / 250.8 MB, free: 6.523 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.001202/0.001202, allocations: 99.89 kB / 304.1 MB, free: 3.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007236/0.0007237, allocations: 16 kB / 367.3 MB, free: 4.832 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5783/0.5791, allocations: 52.54 MB / 419.8 MB, free: 47.96 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002774/0.5819, allocations: 0.9836 MB / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 7.875e-05/0.5821, allocations: 1.469 kB / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.631e-05/0.5821, allocations: 0 / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 3.689e-05/0.5822, allocations: 1.688 kB / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.5823, allocations: 4.719 kB / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.079e-05/0.5823, allocations: 0.9688 kB / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 7.975e-05/0.5824, allocations: 8.609 kB / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.5826, allocations: 3.156 kB / 420.8 MB, free: 47.23 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.945e-05/0.5826, allocations: 5.438 kB / 420.8 MB, free: 47.22 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.344e-05/0.5827, allocations: 2.297 kB / 420.8 MB, free: 47.22 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.5827, allocations: 0.625 kB / 420.8 MB, free: 47.22 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.054e-05/0.5827, allocations: 1.031 kB / 420.8 MB, free: 47.22 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.491e-05/0.5828, allocations: 7.672 kB / 420.8 MB, free: 47.22 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.603e-05/0.5828, allocations: 31.5 kB / 420.8 MB, free: 47.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 6.434e-05/0.5829, allocations: 13.17 kB / 420.9 MB, free: 47.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.5829, allocations: 0 / 420.9 MB, free: 47.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5829, allocations: 0 / 420.9 MB, free: 47.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.5829, allocations: 0 / 420.9 MB, free: 47.18 MB / 330.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.0004065/0.5833, allocations: 312.8 kB / 421.2 MB, free: 46.83 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.911e-05/0.5834, allocations: 10.09 kB / 421.2 MB, free: 46.83 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.704e-05/0.5835, allocations: 31.31 kB / 421.2 MB, free: 46.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.5835, allocations: 10.77 kB / 421.2 MB, free: 46.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.5837, allocations: 166.7 kB / 421.4 MB, free: 46.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.5838, allocations: 0 / 421.4 MB, free: 46.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.5838, allocations: 1.094 kB / 421.4 MB, free: 46.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.5839, allocations: 47 kB / 421.4 MB, free: 46.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.5839, allocations: 0 / 421.4 MB, free: 46.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.584, allocations: 5.094 kB / 421.4 MB, free: 46.53 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.584, allocations: 3.953 kB / 421.4 MB, free: 46.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.112e-05/0.584, allocations: 3.188 kB / 421.4 MB, free: 46.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003982/0.5844, allocations: 468.8 kB / 421.9 MB, free: 46.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.989e-05/0.5845, allocations: 172.2 kB / 422.1 MB, free: 45.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.835e-05/0.5846, allocations: 84.7 kB / 422.1 MB, free: 45.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.5846, allocations: 76.56 kB / 422.2 MB, free: 45.69 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/0.5847, allocations: 118.9 kB / 422.3 MB, free: 45.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=0): time 1.924e-06/0.5847, allocations: 0 / 422.3 MB, free: 45.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001056/0.5848, allocations: 28.67 kB / 422.4 MB, free: 45.54 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.5849, allocations: 127.4 kB / 422.5 MB, free: 45.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.585, allocations: 111.3 kB / 422.6 MB, free: 45.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.297e-06/0.585, allocations: 26.41 kB / 422.6 MB, free: 45.26 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.166e-05/0.5851, allocations: 90.55 kB / 422.7 MB, free: 45.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-06/0.5851, allocations: 0 / 422.7 MB, free: 45.17 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.5851, allocations: 4.312 kB / 422.7 MB, free: 45.17 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.417e-05/0.5852, allocations: 316.1 kB / 423 MB, free: 44.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.445e-05/0.5852, allocations: 2.188 kB / 423 MB, free: 44.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.162e-05/0.5853, allocations: 12.66 kB / 423 MB, free: 44.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.596e-05/0.5853, allocations: 6 kB / 423 MB, free: 44.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.5853, allocations: 1.125 kB / 423 MB, free: 44.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001863/0.5855, allocations: 44.17 kB / 423.1 MB, free: 44.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.5856, allocations: 5.281 kB / 423.1 MB, free: 44.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.5856, allocations: 5.078 kB / 423.1 MB, free: 44.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.5856, allocations: 0 / 423.1 MB, free: 44.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.137e-05/0.5857, allocations: 4.047 kB / 423.1 MB, free: 44.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.5857, allocations: 1.781 kB / 423.1 MB, free: 44.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.266e-05/0.5858, allocations: 13.14 kB / 423.1 MB, free: 44.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.5858, allocations: 0.9062 kB / 423.1 MB, free: 44.79 MB / 330.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 0.0001041/0.5859, allocations: 187.7 kB / 423.3 MB, free: 44.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-05/0.586, allocations: 111.6 kB / 423.4 MB, free: 44.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.376e-05/0.586, allocations: 105.9 kB / 423.5 MB, free: 44.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.521e-05/0.5861, allocations: 182.1 kB / 423.7 MB, free: 44.19 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.487e-05/0.5862, allocations: 189.9 kB / 423.9 MB, free: 44 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-05/0.5862, allocations: 178 kB / 424 MB, free: 43.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.5865, allocations: 407.8 kB / 424.4 MB, free: 43.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.69e-05/0.5865, allocations: 103.2 kB / 424.5 MB, free: 43.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.707e-05/0.5866, allocations: 101 kB / 424.6 MB, free: 43.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.556e-05/0.5866, allocations: 182.9 kB / 424.8 MB, free: 42.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.801e-05/0.5867, allocations: 186.1 kB / 425 MB, free: 42.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-05/0.5868, allocations: 181.7 kB / 425.2 MB, free: 42.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.5e-05/0.5868, allocations: 182 kB / 425.4 MB, free: 42.42 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.587, allocations: 305.9 kB / 425.7 MB, free: 42.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.598e-05/0.5871, allocations: 185.1 kB / 425.8 MB, free: 41.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.413e-05/0.5872, allocations: 182.5 kB / 426 MB, free: 41.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.5873, allocations: 102.9 kB / 426.1 MB, free: 41.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.5873, allocations: 182.1 kB / 426.3 MB, free: 41.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.5874, allocations: 110 kB / 426.4 MB, free: 41.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.769e-05/0.5874, allocations: 85.02 kB / 426.5 MB, free: 41.24 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5874, allocations: 5.219 kB / 426.5 MB, free: 41.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003648/0.5878, allocations: 1.219 kB / 426.5 MB, free: 41.23 MB / 330.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.0004018/0.5882, allocations: 0.8045 MB / 427.3 MB, free: 40.42 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.5884, allocations: 12.5 kB / 427.3 MB, free: 40.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5884, allocations: 4.125 kB / 427.3 MB, free: 40.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.997e-06/0.5884, allocations: 1.188 kB / 427.3 MB, free: 40.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.5889, allocations: 0.5205 MB / 427.8 MB, free: 39.88 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008439/0.5897, allocations: 418.6 kB / 428.2 MB, free: 39.47 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.5899, allocations: 0.6745 MB / 428.9 MB, free: 38.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.447e-05/0.59, allocations: 0.6094 kB / 428.9 MB, free: 38.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.59, allocations: 9.641 kB / 428.9 MB, free: 38.77 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.59, allocations: 0 / 428.9 MB, free: 38.77 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02163/0.6117, allocations: 0.8155 MB / 429.7 MB, free: 38.64 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004131/0.6122, allocations: 176.1 kB / 429.9 MB, free: 38.39 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.585/3.197, allocations: 0 / 429.9 MB, free: 38.39 MB / 330.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)