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: translateModel(HanserModelica.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") translateModel(HanserModelica.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 101 kB / 16.27 MB, free: 6.348 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.458/1.458, allocations: 222.9 MB / 239.9 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.001532/0.001532, allocations: 192.5 kB / 290.2 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03511/0.03511, allocations: 8.788 MB / 349.2 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 79.14 kB / 411.7 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09772, allocations: 51.56 MB / 463.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002225/0.09997, allocations: 1.261 MB / 464.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 4.514e-05/0.1, allocations: 3.938 kB / 464.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.057e-05/0.1001, allocations: 8 kB / 464.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.546e-05/0.1001, allocations: 0 / 464.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.1002, allocations: 3.938 kB / 464.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.738e-05/0.1002, allocations: 4 kB / 464.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.521e-05/0.1003, allocations: 7.984 kB / 464.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.507e-05/0.1003, allocations: 0 / 464.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.238e-05/0.1004, allocations: 7.938 kB / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.39e-05/0.1004, allocations: 0 / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.1004, allocations: 0 / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.841e-06/0.1004, allocations: 0 / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.472e-05/0.1005, allocations: 12 kB / 464.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.504e-05/0.1005, allocations: 7.922 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.923e-05/0.1005, allocations: 11.98 kB / 464.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1006, allocations: 0 / 464.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1006, allocations: 3.938 kB / 464.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1006, allocations: 0 / 464.6 MB, free: 13.02 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.0003297/0.1009, allocations: 315.5 kB / 464.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1009, allocations: 12.03 kB / 465 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.544e-05/0.101, allocations: 4.922 kB / 465 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.1011, allocations: 160.7 kB / 465.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1011, allocations: 4.375 kB / 465.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.1011, allocations: 8.312 kB / 465.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.264e-05/0.1012, allocations: 39.98 kB / 465.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.1012, allocations: 4.188 kB / 465.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.1012, allocations: 3.938 kB / 465.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1013, allocations: 0 / 465.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.577e-05/0.1013, allocations: 3.938 kB / 465.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003168/0.1016, allocations: 483.6 kB / 465.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.421e-05/0.1017, allocations: 169.1 kB / 465.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.132e-05/0.1017, allocations: 88.02 kB / 465.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.1018, allocations: 79.27 kB / 466 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.1018, allocations: 117.8 kB / 466.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.1018, allocations: 0 / 466.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.534e-05/0.1019, allocations: 29.61 kB / 466.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.1019, allocations: 130.7 kB / 466.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.225e-05/0.102, allocations: 105.8 kB / 466.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.437e-06/0.102, allocations: 25.7 kB / 466.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.651e-05/0.1021, allocations: 84.05 kB / 466.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-06/0.1021, allocations: 4 kB / 466.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.1021, allocations: 13.72 kB / 466.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.1022, allocations: 318.8 kB / 466.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.094e-05/0.1022, allocations: 7.938 kB / 466.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.326e-05/0.1023, allocations: 9.719 kB / 466.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.272e-05/0.1023, allocations: 21.78 kB / 466.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1023, allocations: 3.938 kB / 466.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.467e-05/0.1024, allocations: 41.62 kB / 466.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1024, allocations: 8 kB / 466.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1024, allocations: 0 / 466.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.1025, allocations: 0 / 466.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.291e-05/0.1025, allocations: 4 kB / 466.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.1025, allocations: 0 / 466.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.1025, allocations: 0 / 466.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-06/0.1025, allocations: 4.062 kB / 466.9 MB, free: 10.52 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.16e-05/0.1026, allocations: 201 kB / 467.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.154e-05/0.1027, allocations: 104.9 kB / 467.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.1027, allocations: 112.1 kB / 467.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.886e-05/0.1028, allocations: 180.2 kB / 467.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.534e-05/0.1029, allocations: 184.2 kB / 467.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.314e-05/0.1029, allocations: 184.3 kB / 467.8 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.1031, allocations: 405.1 kB / 468.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.143e-05/0.1032, allocations: 109 kB / 468.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.212e-05/0.1032, allocations: 101 kB / 468.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.71e-05/0.1033, allocations: 180.2 kB / 468.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.974e-05/0.1033, allocations: 184.2 kB / 468.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.563e-05/0.1034, allocations: 188.2 kB / 469 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.958e-05/0.1034, allocations: 176.3 kB / 469.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001092/0.1035, allocations: 311.7 kB / 469.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.1036, allocations: 182 kB / 469.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.459e-05/0.1037, allocations: 184.2 kB / 469.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.315e-05/0.1038, allocations: 105.5 kB / 469.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.36e-05/0.1038, allocations: 184.2 kB / 470.1 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.1039, allocations: 112.9 kB / 470.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.15e-05/0.1039, allocations: 79.28 kB / 470.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1039, allocations: 0 / 470.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002108/0.1041, allocations: 4 kB / 470.3 MB, free: 6.895 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 8.63e-05/0.1042, allocations: 170.5 kB / 470.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.053e-05/0.1043, allocations: 15.95 kB / 470.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1043, allocations: 0 / 470.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.242e-06/0.1043, allocations: 0 / 470.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.1046, allocations: 467.7 kB / 470.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001991/0.1049, allocations: 189.9 kB / 471.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.1051, allocations: 0.6729 MB / 471.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.793e-05/0.1051, allocations: 7.438 kB / 471.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1051, allocations: 0 / 471.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of Templates: time 0.001616/0.1067, allocations: 399.9 kB / 472.2 MB, free: 4.922 MB / 302.1 MB make -j1 -f HanserModelica_HanserModelica.Classes.MixedDeclaration.makefile (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 & ./HanserModelica_HanserModelica.Classes.MixedDeclaration -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)