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.001508/0.001508, allocations: 108 kB / 15.6 MB, free: 128 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.401/1.401, 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.00166/0.00166, allocations: 192.5 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.03416/0.03416, allocations: 8.809 MB / 348.5 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00258/0.00258, allocations: 78.75 kB / 411.2 MB, free: 42.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/0.09245, allocations: 51.58 MB / 462.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002679/0.09516, allocations: 1.258 MB / 464 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 7.224e-05/0.09525, allocations: 4 kB / 464 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.136e-05/0.09529, allocations: 3.938 kB / 464 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.358e-05/0.09534, allocations: 4 kB / 464 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.304e-05/0.09542, allocations: 0 / 464 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.739e-05/0.09544, allocations: 0 / 464 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.081e-05/0.09552, allocations: 7.938 kB / 464 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.082e-05/0.0956, allocations: 4 kB / 464 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.443e-05/0.09563, allocations: 7.938 kB / 464 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.916e-05/0.09568, allocations: 7.984 kB / 464.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.0957, allocations: 0 / 464.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.082e-06/0.09571, allocations: 0 / 464.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.476e-05/0.09573, allocations: 3.984 kB / 464.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.685e-05/0.09576, allocations: 11.94 kB / 464.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.28e-05/0.09582, allocations: 0 / 464.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.09583, allocations: 4 kB / 464.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.09583, allocations: 0 / 464.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.09584, allocations: 0 / 464.1 MB, free: 12.95 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.0003564/0.0962, allocations: 319.5 kB / 464.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.09625, allocations: 11.97 kB / 464.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.32e-05/0.09629, allocations: 30.75 kB / 464.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.279e-05/0.09632, allocations: 8.938 kB / 464.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.09646, allocations: 176.5 kB / 464.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.09648, allocations: 4.375 kB / 464.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-06/0.09649, allocations: 384 / 464.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.794e-05/0.09659, allocations: 39.98 kB / 464.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.0966, allocations: 3.938 kB / 464.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.09661, allocations: 0 / 464.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.09662, allocations: 4 kB / 464.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.788e-05/0.09665, allocations: 3.938 kB / 464.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003466/0.097, allocations: 475.7 kB / 465.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.208e-05/0.09709, allocations: 165.1 kB / 465.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.149e-05/0.09713, allocations: 84.14 kB / 465.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.09716, allocations: 79.27 kB / 465.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/0.09721, allocations: 113.8 kB / 465.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.61e-07/0.09722, allocations: 0 / 465.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.049e-05/0.0973, allocations: 33.61 kB / 465.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.09736, allocations: 126.7 kB / 465.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.68e-05/0.09746, allocations: 105.8 kB / 465.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.09748, allocations: 25.7 kB / 465.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.119e-05/0.09753, allocations: 84.05 kB / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-06/0.09754, allocations: 4 kB / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.09759, allocations: 21.66 kB / 466 MB, free: 10.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.0977, allocations: 310.8 kB / 466.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.385e-06/0.09771, allocations: 0 / 466.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.54e-05/0.09773, allocations: 21.7 kB / 466.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.216e-05/0.09777, allocations: 25.66 kB / 466.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.09777, allocations: 0 / 466.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.683e-05/0.09786, allocations: 41.64 kB / 466.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.09788, allocations: 4 kB / 466.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.09789, allocations: 4 kB / 466.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.09791, allocations: 3.984 kB / 466.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.888e-05/0.09795, allocations: 4 kB / 466.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.09797, allocations: 3.984 kB / 466.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.918e-05/0.09799, allocations: 3.938 kB / 466.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-06/0.098, allocations: 64 / 466.4 MB, free: 10.39 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.0001021/0.09811, allocations: 201.6 kB / 466.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.808e-05/0.09817, allocations: 101 kB / 466.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.37e-05/0.09822, allocations: 116 kB / 466.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.892e-05/0.09828, allocations: 176.3 kB / 466.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.466e-05/0.09835, allocations: 184.2 kB / 467.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.834e-05/0.09841, allocations: 180.3 kB / 467.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.09863, allocations: 409.2 kB / 467.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.599e-05/0.09867, allocations: 104.9 kB / 467.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.945e-05/0.0987, allocations: 101.2 kB / 467.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-05/0.09877, allocations: 188.2 kB / 468.1 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-05/0.09883, allocations: 184.3 kB / 468.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.099e-05/0.0989, allocations: 184.2 kB / 468.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.941e-05/0.09895, allocations: 180.2 kB / 468.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.09908, allocations: 303.7 kB / 468.9 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/0.09916, allocations: 190 kB / 469.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.189e-05/0.09923, allocations: 188.2 kB / 469.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.76e-05/0.09933, allocations: 101.3 kB / 469.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.325e-05/0.0994, allocations: 180.3 kB / 469.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.09944, allocations: 109 kB / 469.7 MB, free: 6.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.865e-05/0.09948, allocations: 87.27 kB / 469.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09949, allocations: 0 / 469.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002111/0.0997, allocations: 0 / 469.8 MB, free: 6.773 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.0003656/0.1001, allocations: 0.8048 MB / 470.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.388e-05/0.1001, allocations: 7.938 kB / 470.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1001, allocations: 0 / 470.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-06/0.1002, allocations: 128 / 470.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.1005, allocations: 463.6 kB / 471 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009529/0.1015, allocations: 1.292 MB / 472.3 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.1017, allocations: 0.669 MB / 473 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.963e-05/0.1018, allocations: 4.031 kB / 473 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.278e-05/0.1018, allocations: 15.44 kB / 473 MB, free: 3.379 MB / 302.1 MB Notification: Performance of SimCode: time 1.843e-06/0.1018, allocations: 0 / 473 MB, free: 3.379 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.1193, allocations: 0.9494 MB / 474 MB, free: 2.477 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.629, allocations: 13 kB / 474 MB, free: 2.469 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Classes.MixedDeclaration_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)