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.00129/0.00129, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 239 MB, free: 4.727 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.001234/0.001234, allocations: 192.4 kB / 289.3 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.797 MB / 348.2 MB, free: 4.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 74.22 kB / 410.7 MB, free: 42.21 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07514/0.07659, allocations: 51.56 MB / 462.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002241/0.07887, allocations: 1.325 MB / 463.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 5.011e-05/0.07894, allocations: 7.984 kB / 463.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.077e-05/0.07898, allocations: 0 / 463.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.878e-05/0.07902, allocations: 3.938 kB / 463.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.17e-05/0.07911, allocations: 0 / 463.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.642e-05/0.07914, allocations: 0 / 463.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.228e-05/0.07921, allocations: 11.94 kB / 463.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.079e-05/0.07929, allocations: 7.984 kB / 463.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.176e-05/0.07931, allocations: 3.938 kB / 463.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.863e-05/0.07936, allocations: 4 kB / 463.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.07938, allocations: 0 / 463.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.741e-06/0.07939, allocations: 4 kB / 463.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.459e-05/0.07941, allocations: 0 / 463.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.865e-05/0.07944, allocations: 11.94 kB / 463.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.346e-05/0.0795, allocations: 7.969 kB / 463.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.07951, allocations: 0 / 463.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.07952, allocations: 0 / 463.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.07952, allocations: 0 / 463.6 MB, free: 13.25 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.0003933/0.07992, allocations: 319.5 kB / 463.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.07997, allocations: 8.031 kB / 464 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.433e-05/0.08001, allocations: 34.73 kB / 464 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.439e-05/0.08005, allocations: 12.88 kB / 464 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.08019, allocations: 168.6 kB / 464.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.08021, allocations: 384 / 464.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.08022, allocations: 384 / 464.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.749e-05/0.08031, allocations: 47.92 kB / 464.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.08033, allocations: 3.938 kB / 464.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.08034, allocations: 3.938 kB / 464.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.08035, allocations: 4 kB / 464.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.912e-05/0.08038, allocations: 7.984 kB / 464.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003542/0.08074, allocations: 479.6 kB / 464.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.443e-05/0.08082, allocations: 165.1 kB / 464.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.749e-05/0.08087, allocations: 80.14 kB / 464.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.0809, allocations: 79.28 kB / 465 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/0.08096, allocations: 105.8 kB / 465.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 8.91e-07/0.08096, allocations: 0 / 465.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.966e-05/0.08105, allocations: 37.55 kB / 465.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.08111, allocations: 130.7 kB / 465.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.494e-05/0.08121, allocations: 109.8 kB / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.08123, allocations: 29.7 kB / 465.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.333e-05/0.08128, allocations: 84.05 kB / 465.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.966e-06/0.08129, allocations: 0 / 465.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.08133, allocations: 13.72 kB / 465.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.08144, allocations: 318.8 kB / 465.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.367e-06/0.08146, allocations: 0 / 465.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.327e-05/0.08147, allocations: 13.72 kB / 465.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.817e-05/0.08152, allocations: 29.66 kB / 465.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.08152, allocations: 0 / 465.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.692e-05/0.08163, allocations: 37.69 kB / 465.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.08165, allocations: 10.03 kB / 465.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.08166, allocations: 0 / 465.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.08167, allocations: 0 / 465.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.656e-05/0.08172, allocations: 4 kB / 465.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.08174, allocations: 7.922 kB / 465.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.931e-05/0.08176, allocations: 4.062 kB / 465.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.08178, allocations: 0 / 465.9 MB, free: 10.7 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 0.0001001/0.08188, allocations: 201.6 kB / 466.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.17e-05/0.08194, allocations: 101 kB / 466.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.082, allocations: 112.1 kB / 466.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.495e-05/0.08207, allocations: 180.2 kB / 466.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.965e-05/0.08213, allocations: 184.3 kB / 466.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.773e-05/0.08219, allocations: 180.2 kB / 466.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.08241, allocations: 405.2 kB / 467.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.652e-05/0.08245, allocations: 104.9 kB / 467.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.488e-05/0.08249, allocations: 105 kB / 467.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-05/0.08256, allocations: 188.2 kB / 467.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.08261, allocations: 180.2 kB / 467.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-05/0.08267, allocations: 180.3 kB / 468 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.438e-05/0.08273, allocations: 184.2 kB / 468.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.08285, allocations: 307.9 kB / 468.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.899e-05/0.08293, allocations: 194 kB / 468.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.083, allocations: 180.3 kB / 468.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.08309, allocations: 104.9 kB / 469 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.678e-05/0.08317, allocations: 184.3 kB / 469.1 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.08321, allocations: 105 kB / 469.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.73e-05/0.08326, allocations: 83.53 kB / 469.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08326, allocations: 4 kB / 469.3 MB, free: 7.078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000213/0.08348, allocations: 0 / 469.3 MB, free: 7.078 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.0003264/0.08381, allocations: 0.8087 MB / 470.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.721e-05/0.08388, allocations: 4 kB / 470.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.08389, allocations: 8.125 kB / 470.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.326e-06/0.0839, allocations: 3.938 kB / 470.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.08424, allocations: 453.9 kB / 470.6 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008062/0.08505, allocations: 1.292 MB / 471.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.08528, allocations: 0.6768 MB / 472.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.705e-05/0.08531, allocations: 0 / 472.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.08534, allocations: 7.438 kB / 472.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.08534, allocations: 4 kB / 472.6 MB, free: 3.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009639/0.09499, allocations: 0.872 MB / 473.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/0.09519, allocations: 189.5 kB / 473.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.731, allocations: 3.938 kB / 473.6 MB, free: 2.648 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)