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.000781/0.0007809, allocations: 92 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.353/1.353, 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.0009632/0.0009632, allocations: 187.4 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03244/0.03244, allocations: 8.806 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.000391, allocations: 9.375 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.09725, allocations: 52.56 MB / 466.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.001493/0.09878, allocations: 0.9705 MB / 467.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1006, allocations: 1.145 MB / 468.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.465e-05/0.1007, allocations: 0 / 468.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003853/0.1011, allocations: 83.62 kB / 468.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000897/0.102, allocations: 354.9 kB / 469 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.907e-06/0.102, allocations: 0 / 469 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.1031, allocations: 0.7687 MB / 469.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.72e-05/0.1032, allocations: 4 kB / 469.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.419e-05/0.1032, allocations: 19.92 kB / 469.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.241e-05/0.1033, allocations: 11.88 kB / 469.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.197e-06/0.1033, allocations: 4 kB / 469.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.1034, allocations: 39.91 kB / 469.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.977e-05/0.1035, allocations: 15.98 kB / 469.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.894e-05/0.1035, allocations: 45.5 kB / 469.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.1037, allocations: 75.73 kB / 470 MB, free: 9.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1037, allocations: 0 / 470 MB, free: 9.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1037, allocations: 0 / 470 MB, free: 9.504 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1037, allocations: 4 kB / 470 MB, free: 9.5 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.0003288/0.1041, allocations: 367.2 kB / 470.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1041, allocations: 8.031 kB / 470.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.064e-05/0.1042, allocations: 110 kB / 470.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003808/0.1046, allocations: 104.1 kB / 470.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.105, allocations: 356 kB / 470.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.545e-05/0.1051, allocations: 158.9 kB / 471.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.76e-05/0.1051, allocations: 150.9 kB / 471.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.936e-05/0.1052, allocations: 113.1 kB / 471.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.1052, allocations: 75.28 kB / 471.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.199e-05/0.1053, allocations: 150.6 kB / 471.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.653e-05/0.1053, allocations: 150.6 kB / 471.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.88e-05/0.1054, allocations: 162.5 kB / 471.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002764/0.1057, allocations: 461.9 kB / 472.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.398e-05/0.1058, allocations: 169.1 kB / 472.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.672e-05/0.1058, allocations: 80.14 kB / 472.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.1058, allocations: 79.28 kB / 472.6 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.1059, allocations: 117.7 kB / 472.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.233e-06/0.1059, allocations: 4 kB / 472.8 MB, free: 6.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.04e-05/0.106, allocations: 33.61 kB / 472.8 MB, free: 6.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.106, allocations: 130.6 kB / 472.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.1062, allocations: 158.2 kB / 473.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.248e-06/0.1062, allocations: 29.7 kB / 473.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.198e-05/0.1062, allocations: 100.1 kB / 473.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.413e-06/0.1062, allocations: 0 / 473.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.706e-05/0.1063, allocations: 9.719 kB / 473.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.1064, allocations: 322.8 kB / 473.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.899e-06/0.1064, allocations: 0 / 473.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.705e-06/0.1064, allocations: 0 / 473.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.612e-05/0.1064, allocations: 75.28 kB / 473.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/0.1064, allocations: 79.22 kB / 473.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.855e-05/0.1065, allocations: 53.59 kB / 473.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.1065, allocations: 79.28 kB / 473.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/0.1066, allocations: 75.28 kB / 473.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.404e-05/0.1067, allocations: 154.5 kB / 474 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.107e-05/0.1067, allocations: 79.28 kB / 474.1 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-05/0.1068, allocations: 158.5 kB / 474.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.769e-05/0.1069, allocations: 83.27 kB / 474.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.1069, allocations: 75.28 kB / 474.4 MB, free: 4.832 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.0001328/0.107, allocations: 276.3 kB / 474.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.766e-05/0.1071, allocations: 116.8 kB / 474.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.196e-05/0.1072, allocations: 112.9 kB / 474.9 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.608e-05/0.1072, allocations: 184.2 kB / 475.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.124e-05/0.1073, allocations: 184.3 kB / 475.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.583e-05/0.1074, allocations: 176.3 kB / 475.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.1076, allocations: 425.1 kB / 475.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.452e-05/0.1076, allocations: 101 kB / 476 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.272e-05/0.1077, allocations: 108.9 kB / 476.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-05/0.1078, allocations: 184.3 kB / 476.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/0.1078, allocations: 192.2 kB / 476.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.693e-05/0.1079, allocations: 184.2 kB / 476.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-05/0.108, allocations: 176.3 kB / 476.8 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.1081, allocations: 315.7 kB / 477.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.677e-05/0.1081, allocations: 189.9 kB / 477.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.446e-05/0.1082, allocations: 184.2 kB / 477.5 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-05/0.1083, allocations: 101 kB / 477.6 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.309e-05/0.1084, allocations: 180.2 kB / 477.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.939e-05/0.1084, allocations: 105 kB / 477.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.451e-05/0.1085, allocations: 127.2 kB / 478 MB, free: 1.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1085, allocations: 0 / 478 MB, free: 1.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.1088, allocations: 0 / 478 MB, free: 1.062 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.0003925/0.1092, allocations: 0.8207 MB / 478.8 MB, free: 220 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.261e-05/0.1092, allocations: 4 kB / 478.8 MB, free: 216 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1092, allocations: 0 / 478.8 MB, free: 216 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.613e-06/0.1092, allocations: 0 / 478.8 MB, free: 216 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005154/0.1098, allocations: 0.5302 MB / 479.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.1112, allocations: 1.814 MB / 481.1 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.1116, allocations: 0.6965 MB / 481.8 MB, free: 13.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.886e-05/0.1116, allocations: 0 / 481.8 MB, free: 13.06 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.427e-05/0.1116, allocations: 19.44 kB / 481.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of SimCode: time 2.114e-06/0.1117, allocations: 0 / 481.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01178/0.1234, allocations: 1.576 MB / 483.4 MB, free: 11.59 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.1236, allocations: 199.7 kB / 483.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.768, allocations: 3.938 kB / 483.6 MB, free: 11.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)