Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.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.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",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.001496/0.001496, 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.395/1.395, 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.002043/0.002043, allocations: 180.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.03533/0.03533, allocations: 8.786 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 75.84 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07946/0.08118, allocations: 51.56 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.002162/0.08338, allocations: 1.239 MB / 464 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.08511, allocations: 1.152 MB / 465.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.609e-05/0.08516, allocations: 0 / 465.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.08559, allocations: 79.69 kB / 465.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008961/0.0865, allocations: 401 kB / 465.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.17e-06/0.08652, allocations: 4 kB / 465.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.08792, allocations: 0.9598 MB / 466.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.08797, allocations: 7.984 kB / 466.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.469e-05/0.088, allocations: 15.88 kB / 466.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.557e-05/0.08805, allocations: 19.88 kB / 466.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.08807, allocations: 0 / 466.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.08822, allocations: 35.97 kB / 466.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.741e-05/0.08829, allocations: 23.97 kB / 466.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.338e-05/0.08833, allocations: 23.75 kB / 466.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.08849, allocations: 72.03 kB / 466.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.08851, allocations: 7.938 kB / 466.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08851, allocations: 0 / 466.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.08852, allocations: 0 / 466.8 MB, free: 10.21 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.0003685/0.0889, allocations: 386.9 kB / 467.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.08895, allocations: 12.02 kB / 467.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.01e-05/0.089, allocations: 114 kB / 467.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000381/0.08939, allocations: 104.1 kB / 467.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004045/0.0898, allocations: 340 kB / 467.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.186e-05/0.08987, allocations: 158.9 kB / 467.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/0.08992, allocations: 158.9 kB / 468 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.939e-05/0.08998, allocations: 109.1 kB / 468.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.09001, allocations: 75.28 kB / 468.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.217e-05/0.09006, allocations: 150.6 kB / 468.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.772e-05/0.09011, allocations: 154.6 kB / 468.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.571e-05/0.09016, allocations: 150.6 kB / 468.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002596/0.09043, allocations: 461.9 kB / 469.1 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.407e-05/0.09051, allocations: 177.1 kB / 469.3 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.726e-05/0.09054, allocations: 80.14 kB / 469.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.09057, allocations: 79.28 kB / 469.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.09062, allocations: 109.8 kB / 469.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.282e-06/0.09062, allocations: 0 / 469.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.011e-05/0.0907, allocations: 37.55 kB / 469.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.09076, allocations: 126.7 kB / 469.7 MB, free: 7.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.09091, allocations: 169 kB / 469.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.09094, allocations: 29.7 kB / 469.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/0.091, allocations: 100.1 kB / 470 MB, free: 6.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-06/0.091, allocations: 0 / 470 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.09103, allocations: 13.7 kB / 470 MB, free: 6.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.671e-05/0.09113, allocations: 318.8 kB / 470.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.409e-06/0.09114, allocations: 0 / 470.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.015e-06/0.09115, allocations: 48 / 470.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.504e-05/0.09119, allocations: 75.28 kB / 470.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-05/0.09122, allocations: 83.28 kB / 470.5 MB, free: 6.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.51e-05/0.09129, allocations: 57.31 kB / 470.5 MB, free: 6.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.19e-05/0.09138, allocations: 79.28 kB / 470.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.756e-05/0.09141, allocations: 83.22 kB / 470.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.315e-05/0.09148, allocations: 154.6 kB / 470.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-05/0.09151, allocations: 79.22 kB / 470.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-05/0.09157, allocations: 150.6 kB / 471.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.674e-05/0.09164, allocations: 79.28 kB / 471.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.09167, allocations: 83.22 kB / 471.2 MB, free: 5.516 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.0001234/0.0918, allocations: 276.3 kB / 471.5 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.1e-05/0.09187, allocations: 116.8 kB / 471.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.506e-05/0.09193, allocations: 125.5 kB / 471.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.612e-05/0.09199, allocations: 180.3 kB / 471.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.697e-05/0.09205, allocations: 184.2 kB / 472.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.166e-05/0.09211, allocations: 176.3 kB / 472.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.09235, allocations: 417.2 kB / 472.7 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.464e-05/0.09239, allocations: 108.9 kB / 472.8 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.734e-05/0.09243, allocations: 116.9 kB / 472.9 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.901e-05/0.09249, allocations: 184.2 kB / 473.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.932e-05/0.09255, allocations: 180.3 kB / 473.2 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-05/0.09261, allocations: 176.3 kB / 473.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-05/0.09269, allocations: 188.2 kB / 473.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.09282, allocations: 311.7 kB / 473.9 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.969e-05/0.09289, allocations: 189.9 kB / 474.1 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.312e-05/0.09296, allocations: 180.2 kB / 474.3 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.495e-05/0.09304, allocations: 108.9 kB / 474.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.37e-05/0.09311, allocations: 176.7 kB / 474.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.314e-05/0.09315, allocations: 108.9 kB / 474.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.333e-05/0.09325, allocations: 136.9 kB / 474.8 MB, free: 1.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09326, allocations: 0 / 474.8 MB, free: 1.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.09354, allocations: 4 kB / 474.8 MB, free: 1.727 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.0004248/0.09397, allocations: 0.8125 MB / 475.6 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.092e-05/0.09402, allocations: 4.047 kB / 475.6 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09403, allocations: 7.938 kB / 475.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.09404, allocations: 0 / 475.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.09451, allocations: 463.7 kB / 476.1 MB, free: 424 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.09583, allocations: 1.82 MB / 477.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.09611, allocations: 0.7024 MB / 478.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.816e-05/0.09615, allocations: 4 kB / 478.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.0962, allocations: 23.42 kB / 478.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.09621, allocations: 0 / 478.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.1135, allocations: 1.805 MB / 480.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/7.462, allocations: 8.875 kB / 480.4 MB, free: 12.02 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestSingleLayer12over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestSingleLayer12over12.fmu > HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe 2>&1)