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.001129/0.001129, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.299/1.299, allocations: 222.9 MB / 238.9 MB, free: 4.762 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.001579/0.001579, allocations: 188.5 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03412/0.03412, allocations: 8.786 MB / 348.1 MB, free: 4.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 75.09 kB / 410.5 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07727/0.07866, allocations: 51.57 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002357/0.08105, allocations: 1.309 MB / 463.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.08272, allocations: 1.16 MB / 464.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.135e-05/0.08276, allocations: 0 / 464.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003504/0.08312, allocations: 75.75 kB / 464.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007587/0.0839, allocations: 350.2 kB / 465 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.477e-06/0.08391, allocations: 0 / 465 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.08502, allocations: 0.7763 MB / 465.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.517e-05/0.08506, allocations: 4 kB / 465.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.669e-05/0.08508, allocations: 7.938 kB / 465.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.099e-05/0.08513, allocations: 19.86 kB / 465.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.08515, allocations: 0 / 465.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.08527, allocations: 39.97 kB / 465.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.524e-05/0.08533, allocations: 27.84 kB / 465.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.707e-05/0.08537, allocations: 19.88 kB / 465.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.08551, allocations: 79.89 kB / 465.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.08552, allocations: 0 / 465.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.08553, allocations: 0 / 465.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.08554, allocations: 0 / 465.9 MB, free: 10.91 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.08588, allocations: 379.1 kB / 466.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.08592, allocations: 12.03 kB / 466.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.323e-05/0.08597, allocations: 106 kB / 466.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003606/0.08634, allocations: 108.1 kB / 466.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.08674, allocations: 360 kB / 466.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.939e-05/0.0868, allocations: 150.9 kB / 467 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.08685, allocations: 150.9 kB / 467.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.137e-05/0.08691, allocations: 109.1 kB / 467.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.08695, allocations: 83.27 kB / 467.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.087, allocations: 150.6 kB / 467.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.637e-05/0.08705, allocations: 150.6 kB / 467.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.289e-05/0.0871, allocations: 154.5 kB / 467.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002658/0.08737, allocations: 465.9 kB / 468.3 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.859e-05/0.08746, allocations: 173.1 kB / 468.4 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.974e-05/0.08753, allocations: 80.14 kB / 468.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.08756, allocations: 75.28 kB / 468.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.08761, allocations: 109.8 kB / 468.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 8.81e-07/0.08762, allocations: 4 kB / 468.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.06e-05/0.08769, allocations: 45.59 kB / 468.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.08774, allocations: 126.7 kB / 468.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.08789, allocations: 166.2 kB / 469 MB, free: 7.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.08791, allocations: 25.7 kB / 469 MB, free: 7.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.659e-05/0.08796, allocations: 100.1 kB / 469.1 MB, free: 7.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-06/0.08797, allocations: 0 / 469.1 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.08799, allocations: 9.719 kB / 469.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.527e-05/0.08808, allocations: 326.8 kB / 469.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.428e-06/0.08809, allocations: 0 / 469.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.554e-06/0.0881, allocations: 0 / 469.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.492e-05/0.08813, allocations: 75.28 kB / 469.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-05/0.08815, allocations: 75.28 kB / 469.6 MB, free: 6.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.798e-05/0.08822, allocations: 49.47 kB / 469.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.08825, allocations: 79.28 kB / 469.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-05/0.08828, allocations: 75.28 kB / 469.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.462e-05/0.08834, allocations: 154.6 kB / 470 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.221e-05/0.08837, allocations: 83.22 kB / 470 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.82e-05/0.08842, allocations: 150.6 kB / 470.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.278e-05/0.0885, allocations: 87.16 kB / 470.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.277e-05/0.08859, allocations: 75.28 kB / 470.4 MB, free: 6.23 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.0001215/0.08871, allocations: 276.3 kB / 470.6 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.421e-05/0.08878, allocations: 120.8 kB / 470.7 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.08884, allocations: 116.8 kB / 470.9 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.155e-05/0.08891, allocations: 176.3 kB / 471 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.959e-05/0.08898, allocations: 188.2 kB / 471.2 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-05/0.08904, allocations: 184.2 kB / 471.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.08926, allocations: 425.2 kB / 471.8 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.908e-05/0.08929, allocations: 101 kB / 471.9 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.175e-05/0.08933, allocations: 112.9 kB / 472 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-05/0.08938, allocations: 180.2 kB / 472.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.08944, allocations: 176.3 kB / 472.4 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.86e-05/0.08949, allocations: 188.2 kB / 472.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.792e-05/0.08955, allocations: 176.3 kB / 472.7 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.08967, allocations: 315.7 kB / 473 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.08974, allocations: 185.9 kB / 473.2 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.766e-05/0.0898, allocations: 184.2 kB / 473.4 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.229e-05/0.08988, allocations: 113 kB / 473.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.08994, allocations: 176.3 kB / 473.7 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.08997, allocations: 104.9 kB / 473.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.521e-05/0.09005, allocations: 119.2 kB / 473.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09006, allocations: 4 kB / 473.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.09031, allocations: 0 / 473.9 MB, free: 2.461 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.0003614/0.09068, allocations: 0.8164 MB / 474.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 2.844e-05/0.09071, allocations: 3.938 kB / 474.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.09072, allocations: 0 / 474.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.92e-07/0.09073, allocations: 0 / 474.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004777/0.09121, allocations: 0.5419 MB / 475.3 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.09247, allocations: 1.806 MB / 477.1 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.09273, allocations: 0.7004 MB / 477.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.385e-05/0.09277, allocations: 3.984 kB / 477.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.09281, allocations: 23.44 kB / 477.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09282, allocations: 0 / 477.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01042/0.1032, allocations: 1.638 MB / 479.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/0.1034, allocations: 195.8 kB / 479.6 MB, free: 12.63 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/1.678, allocations: 0 / 479.6 MB, free: 12.63 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)