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.0008174/0.0008174, allocations: 90.52 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.5 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.001017/0.001017, allocations: 175.5 kB / 290.6 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03335/0.03335, allocations: 8.806 MB / 350.5 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003904, allocations: 11.72 kB / 413.9 MB, free: 42.83 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.089, allocations: 52.56 MB / 466.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.00144/0.09049, allocations: 0.9705 MB / 467.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.09245, allocations: 1.149 MB / 468.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.815e-05/0.09251, allocations: 0 / 468.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004208/0.09294, allocations: 79.69 kB / 468.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00105/0.094, allocations: 351 kB / 469 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.707e-06/0.09402, allocations: 0 / 469 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.09536, allocations: 0.9755 MB / 470 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.068e-05/0.09541, allocations: 0 / 470 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.09543, allocations: 11.94 kB / 470 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.645e-05/0.09548, allocations: 7.938 kB / 470 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.09549, allocations: 0 / 470 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.09562, allocations: 47.97 kB / 470.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.808e-05/0.09568, allocations: 19.91 kB / 470.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.661e-05/0.09572, allocations: 45.52 kB / 470.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.09588, allocations: 79.67 kB / 470.2 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.09589, allocations: 4 kB / 470.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.0959, allocations: 0 / 470.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.546e-06/0.0959, allocations: 0 / 470.2 MB, free: 9.27 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.0003068/0.09622, allocations: 371.1 kB / 470.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.09626, allocations: 8.031 kB / 470.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.889e-05/0.09633, allocations: 114 kB / 470.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003445/0.09668, allocations: 112.1 kB / 470.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.09712, allocations: 347.9 kB / 471.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.68e-05/0.09719, allocations: 150.9 kB / 471.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.09724, allocations: 158.9 kB / 471.4 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.398e-05/0.09732, allocations: 121.1 kB / 471.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.09735, allocations: 75.28 kB / 471.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.537e-05/0.09741, allocations: 154.5 kB / 471.8 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.382e-05/0.09746, allocations: 150.6 kB / 471.9 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.505e-05/0.09752, allocations: 150.6 kB / 472.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000277/0.0978, allocations: 469.9 kB / 472.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.747e-05/0.09789, allocations: 173.1 kB / 472.7 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.884e-05/0.09792, allocations: 80.14 kB / 472.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.09795, allocations: 79.28 kB / 472.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.098, allocations: 113.8 kB / 473 MB, free: 6.316 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.09801, allocations: 0 / 473 MB, free: 6.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.897e-05/0.09808, allocations: 37.55 kB / 473 MB, free: 6.273 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.09815, allocations: 126.7 kB / 473.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.09832, allocations: 172.5 kB / 473.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.09833, allocations: 25.7 kB / 473.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.746e-05/0.09839, allocations: 104.1 kB / 473.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.462e-06/0.09839, allocations: 0 / 473.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.735e-05/0.09842, allocations: 13.72 kB / 473.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.843e-05/0.09852, allocations: 318.8 kB / 473.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.898e-06/0.09853, allocations: 0 / 473.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.973e-06/0.09853, allocations: 0 / 473.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.133e-05/0.09857, allocations: 75.28 kB / 473.8 MB, free: 5.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.979e-05/0.09859, allocations: 75.28 kB / 473.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.906e-05/0.09866, allocations: 49.47 kB / 473.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.146e-05/0.0987, allocations: 81.16 kB / 474 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/0.09874, allocations: 79.28 kB / 474.1 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.039e-05/0.0988, allocations: 150.6 kB / 474.2 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.854e-05/0.09883, allocations: 83.22 kB / 474.3 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.654e-05/0.09889, allocations: 154.6 kB / 474.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.516e-05/0.09896, allocations: 79.22 kB / 474.6 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.09898, allocations: 75.28 kB / 474.6 MB, free: 4.586 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.0001143/0.0991, allocations: 280.3 kB / 474.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.562e-05/0.09918, allocations: 124.7 kB / 475 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.261e-05/0.09922, allocations: 109.5 kB / 475.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.823e-05/0.09929, allocations: 188.3 kB / 475.3 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.733e-05/0.09935, allocations: 184.2 kB / 475.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.705e-05/0.09941, allocations: 180.3 kB / 475.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.09965, allocations: 425.1 kB / 476.1 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.828e-05/0.09968, allocations: 104.9 kB / 476.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/0.09972, allocations: 104.9 kB / 476.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.208e-05/0.09978, allocations: 184.2 kB / 476.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.09985, allocations: 184.2 kB / 476.7 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.063e-05/0.09992, allocations: 184.2 kB / 476.8 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.678e-05/0.09998, allocations: 180.2 kB / 477 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.1001, allocations: 311.7 kB / 477.3 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.231e-05/0.1002, allocations: 189.9 kB / 477.5 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.735e-05/0.1003, allocations: 188.2 kB / 477.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.212e-05/0.1003, allocations: 101 kB / 477.8 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.935e-05/0.1004, allocations: 184.3 kB / 478 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.1005, allocations: 104.9 kB / 478.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.726e-05/0.1006, allocations: 127.9 kB / 478.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1006, allocations: 0 / 478.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002447/0.1008, allocations: 0 / 478.2 MB, free: 0.8008 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.0003653/0.1012, allocations: 0.8208 MB / 479 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 3.105e-05/0.1012, allocations: 3.938 kB / 479 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1012, allocations: 0 / 479 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.515e-06/0.1012, allocations: 4 kB / 479 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.1017, allocations: 0.5302 MB / 479.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.103, allocations: 1.832 MB / 481.4 MB, free: 13.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.1032, allocations: 0.6965 MB / 482.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.743e-05/0.1033, allocations: 7.984 kB / 482.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.1033, allocations: 19.42 kB / 482.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1033, allocations: 3.938 kB / 482.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01008/0.1134, allocations: 1.621 MB / 483.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002441/0.1137, allocations: 201.4 kB / 483.9 MB, free: 11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.612/1.726, allocations: 0 / 483.9 MB, free: 11 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)