Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008221/0.000822, allocations: 97.56 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005614/0.005614, allocations: 169.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3374/0.3374, allocations: 40 MB / 310.7 MB, free: 9.586 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006369/0.000637, allocations: 16.42 kB / 379.4 MB, free: 12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1271, allocations: 57.96 MB / 437.4 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002083/0.1293, allocations: 1.24 MB / 438.6 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000914/0.1302, allocations: 0.5114 MB / 439.1 MB, free: 172 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.114e-05/0.1303, allocations: 4 kB / 439.2 MB, free: 168 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.69e-05/0.1304, allocations: 3.938 kB / 439.2 MB, free: 164 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.84e-05/0.1305, allocations: 3.938 kB / 439.2 MB, free: 160 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.1307, allocations: 43.89 kB / 439.2 MB, free: 116 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.1308, allocations: 87.64 kB / 439.3 MB, free: 28 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.1309, allocations: 15.98 kB / 439.3 MB, free: 12 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.1311, allocations: 27.91 kB / 439.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.1312, allocations: 39.83 kB / 439.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.1312, allocations: 4 kB / 439.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.1313, allocations: 4 kB / 439.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.978e-05/0.1313, allocations: 19.91 kB / 439.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.585e-05/0.1314, allocations: 61.5 kB / 439.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.1315, allocations: 71.98 kB / 439.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1316, allocations: 7.922 kB / 439.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1316, allocations: 0 / 439.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1316, allocations: 0 / 439.5 MB, free: 15.77 MB / 382.1 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.0007199/0.1323, allocations: 387.3 kB / 439.9 MB, free: 15.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.1324, allocations: 8.031 kB / 439.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.909e-05/0.1324, allocations: 12.83 kB / 439.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.1326, allocations: 172.2 kB / 440.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.1326, allocations: 8.375 kB / 440.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.1327, allocations: 12.12 kB / 440.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.1329, allocations: 85.64 kB / 440.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1329, allocations: 3.938 kB / 440.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.1329, allocations: 0 / 440.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1329, allocations: 4 kB / 440.2 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.1331, allocations: 47.97 kB / 440.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006094/0.1337, allocations: 336.7 kB / 440.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.1339, allocations: 86.55 kB / 440.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.134, allocations: 52.78 kB / 440.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.1341, allocations: 3.984 kB / 440.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.1343, allocations: 99.58 kB / 440.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 3.897e-06/0.1343, allocations: 7.938 kB / 440.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004591/0.1348, allocations: 181.5 kB / 441 MB, free: 14.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.1348, allocations: 63.39 kB / 441.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.135, allocations: 121.7 kB / 441.2 MB, free: 13.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.135, allocations: 29.7 kB / 441.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.319e-05/0.1351, allocations: 92.41 kB / 441.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.545e-05/0.1351, allocations: 35.55 kB / 441.3 MB, free: 13.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.899e-05/0.1352, allocations: 29.7 kB / 441.4 MB, free: 13.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1354, allocations: 326.8 kB / 441.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.621e-05/0.1354, allocations: 31.98 kB / 441.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.1356, allocations: 81.12 kB / 441.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.1358, allocations: 121.1 kB / 441.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.1358, allocations: 0 / 441.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003107/0.1361, allocations: 173.3 kB / 442.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.1361, allocations: 4 kB / 442.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1362, allocations: 4 kB / 442.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1362, allocations: 3.938 kB / 442.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1363, allocations: 27.92 kB / 442.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1363, allocations: 4.156 kB / 442.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.997e-05/0.1364, allocations: 15.94 kB / 442.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.1364, allocations: 8 kB / 442.2 MB, free: 12.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.1365, allocations: 132 kB / 442.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.1366, allocations: 7.906 kB / 442.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.852e-05/0.1366, allocations: 20.42 kB / 442.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1366, allocations: 4 kB / 442.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1366, allocations: 0 / 442.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1366, allocations: 0 / 442.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005642/0.1372, allocations: 450.9 kB / 442.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1372, allocations: 0 / 442.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.078e-05/0.1373, allocations: 11.98 kB / 442.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1373, allocations: 0 / 442.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.1373, allocations: 4 kB / 442.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1373, allocations: 0 / 442.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1373, allocations: 0 / 442.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003325/0.1377, allocations: 267.4 kB / 443 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.1377, allocations: 92.95 kB / 443.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.1378, allocations: 3.984 kB / 443.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.1379, allocations: 8 kB / 443.1 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.1379, allocations: 15.98 kB / 443.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.138, allocations: 4 kB / 443.2 MB, free: 11.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.085e-05/0.138, allocations: 99.58 kB / 443.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.138, allocations: 0 / 443.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.1383, allocations: 24 kB / 443.3 MB, free: 11.67 MB / 382.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: 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 (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.0001513/0.1384, allocations: 111 kB / 443.4 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002431/0.1387, allocations: 115.8 kB / 443.5 MB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1387, allocations: 0 / 443.5 MB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.1388, allocations: 47.98 kB / 443.5 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.1391, allocations: 23.72 kB / 443.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004375/0.1395, allocations: 225.7 kB / 443.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.1398, allocations: 0.6926 MB / 444.5 MB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.34e-05/0.1398, allocations: 12.88 kB / 444.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.206e-05/0.1399, allocations: 15.44 kB / 444.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1399, allocations: 0 / 444.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of Templates: time 0.003067/0.143, allocations: 0.9022 MB / 445.4 MB, free: 9.477 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) Environment - environmentSimulation: