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/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-master/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 239.3 MB, free: 4.621 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.001338/0.001338, allocations: 195.6 kB / 289.6 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03414/0.03414, allocations: 8.791 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003065/0.003065, allocations: 82.95 kB / 411.2 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09513, allocations: 51.57 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002414/0.09758, allocations: 1.259 MB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 4.787e-05/0.09765, allocations: 0 / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.923e-05/0.09769, allocations: 3.938 kB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.232e-05/0.09772, allocations: 0 / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.359e-05/0.09781, allocations: 3.984 kB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.469e-05/0.09783, allocations: 0 / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.604e-05/0.09789, allocations: 11.94 kB / 464 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.658e-05/0.09796, allocations: 4 kB / 464 MB, free: 13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.889e-05/0.09798, allocations: 7.922 kB / 464 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.239e-05/0.09802, allocations: 8 kB / 464.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.09804, allocations: 0 / 464.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.149e-06/0.09805, allocations: 0 / 464.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.09806, allocations: 0 / 464.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.323e-05/0.09809, allocations: 7.938 kB / 464.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.931e-05/0.09814, allocations: 7.984 kB / 464.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09815, allocations: 0 / 464.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09816, allocations: 0 / 464.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.09817, allocations: 3.938 kB / 464.1 MB, free: 12.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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003235/0.0985, allocations: 323.5 kB / 464.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.09855, allocations: 12.03 kB / 464.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.654e-05/0.09858, allocations: 30.75 kB / 464.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.902e-05/0.09861, allocations: 0.9375 kB / 464.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.09874, allocations: 176.5 kB / 464.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.487e-06/0.09876, allocations: 384 / 464.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.667e-06/0.09877, allocations: 384 / 464.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.189e-05/0.09885, allocations: 51.97 kB / 464.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.09887, allocations: 3.938 kB / 464.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-06/0.09888, allocations: 4 kB / 464.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.09888, allocations: 0 / 464.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.716e-05/0.09891, allocations: 7.938 kB / 464.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003038/0.09921, allocations: 467.6 kB / 465.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.891e-05/0.09929, allocations: 169.2 kB / 465.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.82e-05/0.09933, allocations: 84.14 kB / 465.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.09936, allocations: 75.28 kB / 465.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.0994, allocations: 109.8 kB / 465.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.71e-07/0.09941, allocations: 0 / 465.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.712e-05/0.09948, allocations: 33.61 kB / 465.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.09953, allocations: 130.7 kB / 465.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.092e-05/0.09962, allocations: 101.9 kB / 465.8 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.09964, allocations: 29.7 kB / 465.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.96e-05/0.09969, allocations: 92.03 kB / 465.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-06/0.0997, allocations: 0 / 465.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.09973, allocations: 13.72 kB / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.014e-05/0.09983, allocations: 314.8 kB / 466.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.877e-06/0.09984, allocations: 0 / 466.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.742e-05/0.09986, allocations: 17.72 kB / 466.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.275e-05/0.0999, allocations: 25.59 kB / 466.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.09991, allocations: 0 / 466.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.341e-05/0.1, allocations: 41.62 kB / 466.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.1, allocations: 4 kB / 466.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1, allocations: 4 kB / 466.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.1001, allocations: 3.984 kB / 466.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.116e-05/0.1001, allocations: 8.125 kB / 466.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.1001, allocations: 0 / 466.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/0.1001, allocations: 0 / 466.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-06/0.1001, allocations: 0 / 466.4 MB, free: 10.42 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.508e-05/0.1002, allocations: 201.6 kB / 466.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.042e-05/0.1003, allocations: 108.9 kB / 466.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.13e-05/0.1003, allocations: 108 kB / 466.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.264e-05/0.1004, allocations: 188.2 kB / 467 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.065e-05/0.1005, allocations: 180.2 kB / 467.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.575e-05/0.1005, allocations: 180.3 kB / 467.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.1008, allocations: 405.2 kB / 467.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-05/0.1008, allocations: 104.9 kB / 467.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.965e-05/0.1008, allocations: 105 kB / 467.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.812e-05/0.1009, allocations: 196.2 kB / 468.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.302e-05/0.101, allocations: 176.3 kB / 468.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-05/0.101, allocations: 180.5 kB / 468.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-05/0.1011, allocations: 180.3 kB / 468.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.1012, allocations: 315.7 kB / 468.9 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.483e-05/0.1013, allocations: 186 kB / 469.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.577e-05/0.1014, allocations: 180.2 kB / 469.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.513e-05/0.1014, allocations: 101.3 kB / 469.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.777e-05/0.1015, allocations: 184.2 kB / 469.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.1016, allocations: 117 kB / 469.7 MB, free: 6.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.044e-05/0.1016, allocations: 79.28 kB / 469.8 MB, free: 6.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1016, allocations: 0 / 469.8 MB, free: 6.793 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000226/0.1018, allocations: 0 / 469.8 MB, free: 6.793 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003434/0.1022, allocations: 0.8048 MB / 470.6 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.979e-05/0.1023, allocations: 11.94 kB / 470.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1023, allocations: 0 / 470.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.242e-06/0.1023, allocations: 0 / 470.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.1026, allocations: 455.7 kB / 471 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.1036, allocations: 1.296 MB / 472.3 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.1039, allocations: 0.6729 MB / 473 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.901e-05/0.104, allocations: 0 / 473 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.056e-05/0.104, allocations: 11.44 kB / 473 MB, free: 3.402 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.104, allocations: 0 / 473 MB, free: 3.402 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01706/0.1211, allocations: 0.9488 MB / 473.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.511/7.632, allocations: 6.922 kB / 474 MB, free: 2.496 MB / 302.1 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/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)