Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.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.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",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.001253/0.001253, 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.43/1.43, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.001321/0.001321, allocations: 188.5 kB / 289.5 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0358/0.0358, allocations: 8.78 MB / 348.5 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 78.91 kB / 411.2 MB, free: 41.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.08705, allocations: 51.56 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002617/0.08971, allocations: 1.241 MB / 464 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.09178, allocations: 1.152 MB / 465.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.043e-05/0.09184, allocations: 0 / 465.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004955/0.09238, allocations: 75.69 kB / 465.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.0934, allocations: 400.9 kB / 465.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.949e-06/0.09342, allocations: 0 / 465.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.09483, allocations: 0.9637 MB / 466.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.27e-05/0.09488, allocations: 7.984 kB / 466.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.609e-05/0.09491, allocations: 7.938 kB / 466.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.055e-05/0.09497, allocations: 19.88 kB / 466.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.09499, allocations: 3.938 kB / 466.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.09514, allocations: 39.95 kB / 466.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.768e-05/0.09521, allocations: 19.98 kB / 466.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.09525, allocations: 27.75 kB / 466.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.09545, allocations: 76.02 kB / 466.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.09546, allocations: 0 / 466.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09547, allocations: 4 kB / 466.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.09548, allocations: 0 / 466.8 MB, free: 10.23 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.0003767/0.09586, allocations: 386.9 kB / 467.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.09591, allocations: 8.031 kB / 467.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.86e-05/0.09597, allocations: 114 kB / 467.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004093/0.09639, allocations: 108.1 kB / 467.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.09681, allocations: 340 kB / 467.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.146e-05/0.09687, allocations: 154.9 kB / 467.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.09692, allocations: 150.9 kB / 468 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.755e-05/0.09699, allocations: 117 kB / 468.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.09702, allocations: 79.28 kB / 468.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.09708, allocations: 150.6 kB / 468.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.235e-05/0.09712, allocations: 154.5 kB / 468.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.004e-05/0.09718, allocations: 150.6 kB / 468.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002702/0.09745, allocations: 461.9 kB / 469.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.493e-05/0.09755, allocations: 177.1 kB / 469.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.773e-05/0.09758, allocations: 80.14 kB / 469.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.09761, allocations: 75.28 kB / 469.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.09766, allocations: 113.8 kB / 469.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.09767, allocations: 0 / 469.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.511e-05/0.09775, allocations: 37.61 kB / 469.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.09781, allocations: 126.7 kB / 469.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.09798, allocations: 176.9 kB / 469.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.098, allocations: 25.7 kB / 469.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.654e-05/0.09805, allocations: 96.14 kB / 470 MB, free: 6.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-06/0.09806, allocations: 0 / 470 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.09808, allocations: 9.719 kB / 470 MB, free: 6.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.09819, allocations: 326.8 kB / 470.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.679e-06/0.0982, allocations: 0 / 470.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-06/0.09821, allocations: 4.047 kB / 470.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.219e-05/0.09824, allocations: 75.28 kB / 470.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.734e-05/0.09828, allocations: 75.28 kB / 470.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.213e-05/0.09834, allocations: 53.33 kB / 470.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.09839, allocations: 83.28 kB / 470.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.848e-05/0.09843, allocations: 83.2 kB / 470.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.271e-05/0.09849, allocations: 158.6 kB / 470.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.874e-05/0.09853, allocations: 75.28 kB / 470.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.786e-05/0.09859, allocations: 154.5 kB / 471.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.217e-05/0.09867, allocations: 75.28 kB / 471.1 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.0987, allocations: 79.22 kB / 471.2 MB, free: 5.539 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.0001324/0.09884, allocations: 284.3 kB / 471.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.939e-05/0.09892, allocations: 112.8 kB / 471.6 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.09897, allocations: 125.5 kB / 471.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.119e-05/0.09904, allocations: 176.3 kB / 471.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-05/0.0991, allocations: 176.3 kB / 472.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.146e-05/0.09917, allocations: 180.2 kB / 472.2 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/0.09942, allocations: 429.2 kB / 472.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.542e-05/0.09946, allocations: 104.9 kB / 472.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.019e-05/0.09951, allocations: 120.9 kB / 472.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.525e-05/0.09957, allocations: 176.3 kB / 473.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.206e-05/0.09964, allocations: 184.2 kB / 473.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.143e-05/0.0997, allocations: 180.3 kB / 473.4 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.946e-05/0.09977, allocations: 184.2 kB / 473.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001507/0.09992, allocations: 307.7 kB / 473.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.273e-05/0.1, allocations: 193.9 kB / 474.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.797e-05/0.1001, allocations: 176.3 kB / 474.3 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.1002, allocations: 116.9 kB / 474.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.1003, allocations: 180.7 kB / 474.5 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/0.1003, allocations: 101 kB / 474.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001045/0.1004, allocations: 132.9 kB / 474.8 MB, free: 1.754 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1004, allocations: 3.938 kB / 474.8 MB, free: 1.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.1007, allocations: 4 kB / 474.8 MB, free: 1.746 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.0004388/0.1012, allocations: 0.8087 MB / 475.6 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.095e-05/0.1012, allocations: 4.016 kB / 475.6 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.1012, allocations: 0 / 475.6 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.286e-06/0.1012, allocations: 7.938 kB / 475.6 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.1017, allocations: 471.7 kB / 476.1 MB, free: 440 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.1031, allocations: 1.812 MB / 477.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002421/0.1033, allocations: 0.704 MB / 478.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.369e-05/0.1034, allocations: 7.984 kB / 478.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/0.1034, allocations: 27.36 kB / 478.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1034, allocations: 0 / 478.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.1218, allocations: 1.797 MB / 480.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.437/7.558, allocations: 13.91 kB / 480.4 MB, free: 12.04 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe 2>&1)