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.001609/0.001609, allocations: 105.4 kB / 15.7 MB, free: 24 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.389/1.389, allocations: 222.9 MB / 239.4 MB, free: 4.598 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.001468/0.001469, allocations: 180.5 kB / 289.7 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0345/0.0345, allocations: 8.794 MB / 348.6 MB, free: 4.668 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 80.42 kB / 411.4 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09656, allocations: 51.56 MB / 462.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.00244/0.09904, allocations: 1.26 MB / 464.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 5.303e-05/0.09911, allocations: 11.94 kB / 464.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.426e-05/0.09916, allocations: 0 / 464.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.162e-05/0.09922, allocations: 0 / 464.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.413e-05/0.0993, allocations: 3.938 kB / 464.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.752e-05/0.09932, allocations: 0 / 464.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.903e-05/0.09939, allocations: 11.94 kB / 464.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.729e-05/0.09947, allocations: 4 kB / 464.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.116e-05/0.09951, allocations: 7.984 kB / 464.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.415e-05/0.09955, allocations: 0 / 464.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.09956, allocations: 0 / 464.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.032e-06/0.09957, allocations: 4 kB / 464.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.541e-05/0.09959, allocations: 7.922 kB / 464.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.18e-05/0.09962, allocations: 0 / 464.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.278e-05/0.09968, allocations: 7.938 kB / 464.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.09969, allocations: 0 / 464.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.0997, allocations: 4 kB / 464.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.09971, allocations: 0 / 464.2 MB, free: 12.92 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.0003649/0.1001, allocations: 323.4 kB / 464.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.1001, allocations: 12.03 kB / 464.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.015e-05/0.1002, allocations: 30.75 kB / 464.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.265e-05/0.1002, allocations: 0.9375 kB / 464.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1004, allocations: 172.6 kB / 464.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.1004, allocations: 4.375 kB / 464.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-06/0.1004, allocations: 384 / 464.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.422e-05/0.1005, allocations: 43.98 kB / 464.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1005, allocations: 3.938 kB / 464.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.266e-06/0.1005, allocations: 0 / 464.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.1005, allocations: 0 / 464.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.458e-05/0.1006, allocations: 7.938 kB / 464.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003654/0.101, allocations: 475.6 kB / 465.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.941e-05/0.101, allocations: 173.1 kB / 465.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.035e-05/0.1011, allocations: 84.08 kB / 465.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.1011, allocations: 79.28 kB / 465.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.1012, allocations: 109.8 kB / 465.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.073e-06/0.1012, allocations: 4 kB / 465.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.026e-05/0.1013, allocations: 29.61 kB / 465.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.1013, allocations: 130.7 kB / 465.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.736e-05/0.1014, allocations: 101.8 kB / 466 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.1014, allocations: 25.7 kB / 466 MB, free: 10.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.382e-05/0.1015, allocations: 88.05 kB / 466.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.364e-06/0.1015, allocations: 0 / 466.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.1015, allocations: 13.72 kB / 466.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1017, allocations: 326.8 kB / 466.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.938e-06/0.1017, allocations: 0 / 466.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.62e-05/0.1017, allocations: 17.72 kB / 466.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.732e-05/0.1018, allocations: 17.66 kB / 466.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1018, allocations: 3.938 kB / 466.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001054/0.1019, allocations: 45.7 kB / 466.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1019, allocations: 4 kB / 466.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1019, allocations: 3.984 kB / 466.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1019, allocations: 4 kB / 466.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.69e-05/0.102, allocations: 0 / 466.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.102, allocations: 4 kB / 466.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.038e-05/0.102, allocations: 0 / 466.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-06/0.102, allocations: 0 / 466.5 MB, free: 10.37 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.0001079/0.1022, allocations: 197.6 kB / 466.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.393e-05/0.1022, allocations: 113 kB / 466.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/0.1023, allocations: 112.1 kB / 466.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-05/0.1024, allocations: 184.2 kB / 467.1 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-05/0.1024, allocations: 176.3 kB / 467.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.668e-05/0.1025, allocations: 176.3 kB / 467.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.1027, allocations: 417.1 kB / 467.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.724e-05/0.1028, allocations: 101 kB / 468 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.977e-05/0.1028, allocations: 104.9 kB / 468.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.892e-05/0.1029, allocations: 180.3 kB / 468.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-05/0.1029, allocations: 184.2 kB / 468.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.304e-05/0.103, allocations: 184.2 kB / 468.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.754e-05/0.103, allocations: 184.3 kB / 468.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.1032, allocations: 303.7 kB / 469.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.815e-05/0.1033, allocations: 194 kB / 469.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.852e-05/0.1033, allocations: 180.5 kB / 469.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.122e-05/0.1034, allocations: 105.3 kB / 469.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.1035, allocations: 184.2 kB / 469.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.1035, allocations: 113 kB / 469.8 MB, free: 6.824 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.914e-05/0.1036, allocations: 87.27 kB / 469.9 MB, free: 6.738 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1036, allocations: 0 / 469.9 MB, free: 6.738 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002264/0.1038, allocations: 0 / 469.9 MB, free: 6.738 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.0003816/0.1042, allocations: 0.8125 MB / 470.7 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.668e-05/0.1043, allocations: 8 kB / 470.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1043, allocations: 0 / 470.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.865e-06/0.1043, allocations: 4 kB / 470.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.1047, allocations: 458.2 kB / 471.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008535/0.1055, allocations: 1.291 MB / 472.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.1058, allocations: 0.6729 MB / 473.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.123e-05/0.1058, allocations: 3.984 kB / 473.2 MB, free: 3.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.022e-05/0.1058, allocations: 11.44 kB / 473.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1058, allocations: 4 kB / 473.2 MB, free: 3.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.1239, allocations: 0.9553 MB / 474.1 MB, free: 2.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.479, allocations: 8.531 kB / 474.1 MB, free: 2.441 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)