Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.Attributes.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.VariablesTypes.Attributes,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_Attributes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.Attributes,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_Attributes",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.0007359/0.000736, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.321/1.321, allocations: 223.3 MB / 239.4 MB, free: 5.523 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.0009519/0.0009519, allocations: 183.6 kB / 290.6 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03209/0.03209, allocations: 8.796 MB / 350.5 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003743, allocations: 13.34 kB / 413.9 MB, free: 42.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09388/0.09427, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.Attributes): time 0.001392/0.0957, allocations: 0.9081 MB / 467.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 7.151e-05/0.09581, allocations: 11.97 kB / 467.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.118e-05/0.09585, allocations: 4 kB / 467.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.751e-05/0.09587, allocations: 0 / 467.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.375e-05/0.09592, allocations: 0 / 467.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.362e-05/0.09597, allocations: 0 / 467.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.663e-05/0.09602, allocations: 7.938 kB / 467.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.106e-05/0.09608, allocations: 7.984 kB / 467.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.226e-05/0.09611, allocations: 7.938 kB / 467.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.995e-05/0.09615, allocations: 4 kB / 467.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.09617, allocations: 0 / 467.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.841e-06/0.09618, allocations: 0 / 467.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.225e-05/0.0962, allocations: 4 kB / 467.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.441e-05/0.09624, allocations: 29.64 kB / 467.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.423e-05/0.09629, allocations: 7.984 kB / 467.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.0963, allocations: 0 / 467.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.09631, allocations: 0 / 467.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.848e-06/0.09631, allocations: 0 / 467.5 MB, free: 12.04 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.0003772/0.0967, allocations: 323.7 kB / 467.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.09674, allocations: 11.97 kB / 467.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.881e-05/0.09679, allocations: 30.75 kB / 467.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.042e-05/0.09683, allocations: 12.94 kB / 467.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.09697, allocations: 168.4 kB / 468 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.09699, allocations: 384 / 468 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.09701, allocations: 384 / 468 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.09715, allocations: 39.98 kB / 468 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.09717, allocations: 3.938 kB / 468.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.09718, allocations: 0 / 468.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.0972, allocations: 7.938 kB / 468.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.877e-05/0.09724, allocations: 15.92 kB / 468.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005421/0.09779, allocations: 186.5 kB / 468.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.172e-05/0.09786, allocations: 37.12 kB / 468.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.65e-05/0.0979, allocations: 17.84 kB / 468.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.09791, allocations: 0 / 468.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.09795, allocations: 38.56 kB / 468.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 3.005e-06/0.09796, allocations: 0 / 468.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001557/0.09812, allocations: 53.5 kB / 468.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.09817, allocations: 77.36 kB / 468.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.34e-05/0.09825, allocations: 97.86 kB / 468.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.09828, allocations: 25.7 kB / 468.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.204e-05/0.09831, allocations: 80.14 kB / 468.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.09835, allocations: 7.906 kB / 468.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.09839, allocations: 13.72 kB / 468.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.09852, allocations: 314.8 kB / 469 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.14e-05/0.09854, allocations: 0 / 469 MB, free: 10.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.06e-05/0.09857, allocations: 17.84 kB / 469 MB, free: 10.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.234e-05/0.09862, allocations: 21.66 kB / 469 MB, free: 10.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.09863, allocations: 4 kB / 469 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.443e-05/0.09871, allocations: 45.62 kB / 469.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.09874, allocations: 7.938 kB / 469.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.09875, allocations: 0 / 469.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.09878, allocations: 4.125 kB / 469.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.09898, allocations: 27.98 kB / 469.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.1009, allocations: 2.541 MB / 471.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.408e-05/0.1009, allocations: 4.25 kB / 471.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.1009, allocations: 3.938 kB / 471.7 MB, free: 7.301 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): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.874e-05/0.101, allocations: 110.4 kB / 471.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.101, allocations: 7.984 kB / 471.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.1011, allocations: 11.08 kB / 471.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.1011, allocations: 0 / 471.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.1011, allocations: 3.938 kB / 471.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1011, allocations: 4 kB / 471.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.1015, allocations: 189.6 kB / 472 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.1015, allocations: 0 / 472 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.1017, allocations: 23.98 kB / 472 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1017, allocations: 4 kB / 472 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.1017, allocations: 0 / 472 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.1035, allocations: 2.537 MB / 474.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1035, allocations: 4.031 kB / 474.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.1036, allocations: 74.08 kB / 474.6 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/0.1037, allocations: 84.98 kB / 474.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.1037, allocations: 7.984 kB / 474.7 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.075e-05/0.1037, allocations: 3.938 kB / 474.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.745e-05/0.1037, allocations: 0 / 474.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.1038, allocations: 8 kB / 474.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.802e-05/0.1038, allocations: 75.28 kB / 474.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1038, allocations: 4.125 kB / 474.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.104, allocations: 4 kB / 474.8 MB, free: 3.797 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004374/0.1045, allocations: 0.6054 MB / 475.4 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000515/0.105, allocations: 36 kB / 475.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.105, allocations: 0 / 475.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.1054, allocations: 48.08 kB / 475.5 MB, free: 3.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.1056, allocations: 4 kB / 475.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.106, allocations: 135.2 kB / 475.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.1063, allocations: 0.6809 MB / 476.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.1064, allocations: 20.06 kB / 476.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.1065, allocations: 27.39 kB / 476.4 MB, free: 2.141 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1065, allocations: 0 / 476.4 MB, free: 2.141 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01234/0.1189, allocations: 1.547 MB / 477.9 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/0.1191, allocations: 195.8 kB / 478.1 MB, free: 444 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/1.71, allocations: 0 / 478.1 MB, free: 444 kB / 302.1 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.Attributes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_VariablesTypes_Attributes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_Attributes.fmu > HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe 2>&1)