Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.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.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",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.00138/0.00138, allocations: 108 kB / 15.61 MB, free: 152 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.37/1.37, allocations: 222.9 MB / 239.3 MB, free: 4.594 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.00133/0.00133, allocations: 196.5 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03472/0.03472, allocations: 8.784 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 77.3 kB / 411.2 MB, free: 42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09199/0.09359, allocations: 51.57 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002584/0.09623, allocations: 1.239 MB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.098, allocations: 1.152 MB / 465.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.873e-05/0.09805, allocations: 0 / 465.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003974/0.09847, allocations: 75.7 kB / 465.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008696/0.09935, allocations: 390.5 kB / 465.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.907e-06/0.09937, allocations: 4 kB / 465.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.1005, allocations: 0.7647 MB / 466.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.706e-05/0.1006, allocations: 8 kB / 466.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.65e-05/0.1006, allocations: 7.938 kB / 466.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.08e-05/0.1007, allocations: 19.86 kB / 466.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.1007, allocations: 4 kB / 466.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.1008, allocations: 39.92 kB / 466.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.85e-05/0.1009, allocations: 19.95 kB / 466.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.551e-05/0.1009, allocations: 23.81 kB / 466.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.1011, allocations: 75.97 kB / 466.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1011, allocations: 3.938 kB / 466.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1011, allocations: 0 / 466.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1011, allocations: 0 / 466.6 MB, free: 10.43 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003393/0.1015, allocations: 375.1 kB / 466.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1015, allocations: 16.03 kB / 467 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.409e-05/0.1016, allocations: 110 kB / 467.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003689/0.102, allocations: 108.1 kB / 467.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004068/0.1024, allocations: 356 kB / 467.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.847e-05/0.1024, allocations: 154.9 kB / 467.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.1025, allocations: 150.9 kB / 467.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.527e-05/0.1025, allocations: 109.1 kB / 467.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.1026, allocations: 83.22 kB / 468 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.1026, allocations: 150.6 kB / 468.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-05/0.1027, allocations: 150.6 kB / 468.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.924e-05/0.1027, allocations: 162.5 kB / 468.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002623/0.103, allocations: 461.9 kB / 468.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.227e-05/0.1031, allocations: 165.1 kB / 469.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.572e-05/0.1031, allocations: 88.08 kB / 469.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.1032, allocations: 79.28 kB / 469.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/0.1032, allocations: 109.8 kB / 469.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.1032, allocations: 0 / 469.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.567e-05/0.1033, allocations: 33.61 kB / 469.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.1034, allocations: 126.7 kB / 469.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.1035, allocations: 162.2 kB / 469.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.1035, allocations: 29.7 kB / 469.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.676e-05/0.1036, allocations: 104.1 kB / 469.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.252e-06/0.1036, allocations: 0 / 469.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.1036, allocations: 9.719 kB / 469.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1037, allocations: 322.8 kB / 470.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.502e-06/0.1038, allocations: 3.938 kB / 470.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.885e-06/0.1038, allocations: 0 / 470.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.271e-05/0.1038, allocations: 75.28 kB / 470.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.066e-05/0.1038, allocations: 75.28 kB / 470.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.01e-05/0.1039, allocations: 41.55 kB / 470.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.1039, allocations: 83.28 kB / 470.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/0.104, allocations: 79.27 kB / 470.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.658e-05/0.104, allocations: 154.5 kB / 470.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.558e-05/0.104, allocations: 75.28 kB / 470.7 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-05/0.1041, allocations: 162.5 kB / 470.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.848e-05/0.1042, allocations: 79.28 kB / 470.9 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.1042, allocations: 75.33 kB / 471 MB, free: 5.754 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 0.0001145/0.1043, allocations: 288.2 kB / 471.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/0.1044, allocations: 116.8 kB / 471.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.082e-05/0.1044, allocations: 112.8 kB / 471.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.105e-05/0.1045, allocations: 180.2 kB / 471.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.835e-05/0.1046, allocations: 184.3 kB / 471.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.178e-05/0.1046, allocations: 184.2 kB / 472 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.1048, allocations: 417.2 kB / 472.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.85e-05/0.1049, allocations: 105 kB / 472.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.799e-05/0.1049, allocations: 108.9 kB / 472.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.132e-05/0.105, allocations: 188.2 kB / 472.8 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.129e-05/0.105, allocations: 180.2 kB / 473 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.348e-05/0.1051, allocations: 184.3 kB / 473.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.628e-05/0.1051, allocations: 180.3 kB / 473.4 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.1053, allocations: 311.7 kB / 473.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/0.1053, allocations: 193.9 kB / 473.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.01e-05/0.1054, allocations: 184.3 kB / 474 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.828e-05/0.1055, allocations: 105 kB / 474.1 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.282e-05/0.1056, allocations: 184.6 kB / 474.3 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.436e-05/0.1056, allocations: 101 kB / 474.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.423e-05/0.1057, allocations: 123.2 kB / 474.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1057, allocations: 0 / 474.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002499/0.106, allocations: 4 kB / 474.5 MB, free: 1.973 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.0003668/0.1064, allocations: 0.8164 MB / 475.4 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.703e-05/0.1064, allocations: 8.016 kB / 475.4 MB, free: 1.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1064, allocations: 0 / 475.4 MB, free: 1.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.1064, allocations: 0 / 475.4 MB, free: 1.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.1069, allocations: 478 kB / 475.8 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.1081, allocations: 1.788 MB / 477.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.1083, allocations: 0.6924 MB / 478.3 MB, free: 14.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.402e-05/0.1084, allocations: 11.97 kB / 478.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.398e-05/0.1084, allocations: 19.44 kB / 478.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1084, allocations: 0 / 478.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.1269, allocations: 1.755 MB / 480.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.422/7.549, allocations: 18.27 kB / 480.1 MB, free: 12.33 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1)