Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009855/0.009859, allocations: 163.6 kB / 15.12 MB, free: 5.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.686/1.686, allocations: 170.8 MB / 186.7 MB, free: 1.109 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00249/0.00249, allocations: 102.8 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4946/0.4946, allocations: 38.05 MB / 303.7 MB, free: 42.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004557/0.0004559, allocations: 8 kB / 363 MB, free: 5.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1244, allocations: 48.71 MB / 411.7 MB, free: 4.707 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003186/0.1276, allocations: 1.199 MB / 412.9 MB, free: 3.496 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1294, allocations: 479.4 kB / 413.4 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.281e-05/0.1295, allocations: 4 kB / 413.4 MB, free: 3.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.648e-05/0.1296, allocations: 3.938 kB / 413.4 MB, free: 3.016 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.1297, allocations: 11.92 kB / 413.4 MB, free: 3.004 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.13, allocations: 31.91 kB / 413.4 MB, free: 2.973 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.1303, allocations: 83.75 kB / 413.5 MB, free: 2.891 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1304, allocations: 7.984 kB / 413.5 MB, free: 2.883 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.1306, allocations: 31.86 kB / 413.5 MB, free: 2.852 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.1308, allocations: 39.81 kB / 413.6 MB, free: 2.812 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.1308, allocations: 8 kB / 413.6 MB, free: 2.805 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.39e-05/0.1309, allocations: 7.938 kB / 413.6 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.924e-05/0.1309, allocations: 11.98 kB / 413.6 MB, free: 2.785 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.116e-05/0.131, allocations: 41.64 kB / 413.6 MB, free: 2.738 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.1312, allocations: 56.11 kB / 413.7 MB, free: 2.684 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1312, allocations: 0 / 413.7 MB, free: 2.684 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1312, allocations: 0 / 413.7 MB, free: 2.684 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.1313, allocations: 0 / 413.7 MB, free: 2.684 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001132/0.1324, allocations: 387.1 kB / 414.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.1325, allocations: 8.031 kB / 414.1 MB, free: 2.25 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.892e-05/0.1326, allocations: 38.56 kB / 414.1 MB, free: 2.203 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.393e-05/0.1327, allocations: 11.89 kB / 414.1 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.1329, allocations: 182.8 kB / 414.3 MB, free: 1.973 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.133, allocations: 8 kB / 414.3 MB, free: 1.965 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.133, allocations: 8 kB / 414.3 MB, free: 1.957 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.1335, allocations: 89.64 kB / 414.4 MB, free: 1.863 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.1335, allocations: 0 / 414.4 MB, free: 1.863 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.1336, allocations: 4 kB / 414.4 MB, free: 1.859 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1336, allocations: 0 / 414.4 MB, free: 1.859 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003649/0.134, allocations: 47.97 kB / 414.5 MB, free: 1.812 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.135, allocations: 344.5 kB / 414.8 MB, free: 1.426 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004076/0.1355, allocations: 86.55 kB / 414.9 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.1357, allocations: 40.84 kB / 414.9 MB, free: 1.289 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.1358, allocations: 11.92 kB / 414.9 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004215/0.1362, allocations: 103.4 kB / 415 MB, free: 1.164 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 4.028e-06/0.1363, allocations: 0 / 415 MB, free: 1.164 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001001/0.1373, allocations: 197.8 kB / 415.2 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.038e-05/0.1374, allocations: 63.39 kB / 415.3 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.1376, allocations: 117.8 kB / 415.4 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.817e-05/0.1376, allocations: 33.7 kB / 415.4 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.507e-05/0.1377, allocations: 88.12 kB / 415.5 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.674e-05/0.1378, allocations: 35.56 kB / 415.6 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.228e-05/0.1379, allocations: 0 / 415.6 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.1381, allocations: 326.8 kB / 415.9 MB, free: 280 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.1383, allocations: 36.16 kB / 415.9 MB, free: 244 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002621/0.1386, allocations: 73.52 kB / 416 MB, free: 152 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.1389, allocations: 51.92 kB / 416 MB, free: 100 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.1389, allocations: 4 kB / 416 MB, free: 96 kB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007136/0.1397, allocations: 165.7 kB / 416.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.1397, allocations: 8 kB / 416.2 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1398, allocations: 0 / 416.2 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.1398, allocations: 7.953 kB / 416.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002601/0.1401, allocations: 20.14 kB / 416.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.1401, allocations: 7.938 kB / 416.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.1403, allocations: 15.94 kB / 416.3 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.72e-05/0.1403, allocations: 4 kB / 416.3 MB, free: 15.86 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002786/0.1406, allocations: 136.5 kB / 416.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.638e-05/0.1407, allocations: 11.89 kB / 416.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.937e-05/0.1408, allocations: 12.5 kB / 416.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.1408, allocations: 3.953 kB / 416.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1408, allocations: 4 kB / 416.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/0.1409, allocations: 3.984 kB / 416.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.1421, allocations: 446.4 kB / 416.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1422, allocations: 0 / 416.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.1423, allocations: 8 kB / 416.9 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/0.1424, allocations: 7.891 kB / 416.9 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.1424, allocations: 3.984 kB / 416.9 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.636e-06/0.1424, allocations: 8 kB / 416.9 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1424, allocations: 0 / 416.9 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007391/0.1432, allocations: 248 kB / 417.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.1434, allocations: 100.9 kB / 417.2 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.1434, allocations: 7.891 kB / 417.2 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002866/0.1437, allocations: 19.98 kB / 417.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.225e-05/0.1438, allocations: 7.984 kB / 417.3 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.1439, allocations: 4 kB / 417.3 MB, free: 14.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001033/0.144, allocations: 95.31 kB / 417.4 MB, free: 14.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.144, allocations: 0 / 417.4 MB, free: 14.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005768/0.1446, allocations: 20 kB / 417.4 MB, free: 14.64 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001237/0.1459, allocations: 0.7904 MB / 418.2 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006196/0.1465, allocations: 107.9 kB / 418.3 MB, free: 13.72 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1465, allocations: 3.938 kB / 418.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003023/0.1469, allocations: 56.28 kB / 418.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005914/0.1475, allocations: 13.83 kB / 418.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.1501, allocations: 0.6721 MB / 419 MB, free: 12.91 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.1506, allocations: 0.6926 MB / 419.7 MB, free: 12.19 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.1508, allocations: 12.88 kB / 419.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.1509, allocations: 27.42 kB / 419.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of SimCode: time 1.542e-06/0.151, allocations: 0 / 419.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07423/0.2252, allocations: 1.88 MB / 421.6 MB, free: 10.31 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005862/0.2259, allocations: 181.8 kB / 421.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/2.859, allocations: 0 / 421.8 MB, free: 10.07 MB / 330.7 MB