Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002049/0.002049, allocations: 194.7 kB / 16.14 MB, free: 6.703 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.546/1.546, allocations: 205.1 MB / 222 MB, free: 5.012 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3331/0.3331, allocations: 37.98 MB / 307.3 MB, free: 9.859 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.1. 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.001623/0.001623, allocations: 63.91 kB / 374.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1479, allocations: 56.47 MB / 431 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003086/0.151, allocations: 1.57 MB / 432.6 MB, free: 5.496 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00085/0.1519, allocations: 0.5231 MB / 433.1 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.527e-05/0.152, allocations: 0 / 433.1 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.036e-05/0.152, allocations: 3.938 kB / 433.1 MB, free: 4.961 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.503e-05/0.1521, allocations: 7.938 kB / 433.1 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.1523, allocations: 39.89 kB / 433.2 MB, free: 4.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.1525, allocations: 75.78 kB / 433.2 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.1526, allocations: 27.83 kB / 433.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.1527, allocations: 35.84 kB / 433.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.58e-05/0.1528, allocations: 39.83 kB / 433.3 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.1528, allocations: 4 kB / 433.3 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2e-05/0.1529, allocations: 4 kB / 433.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.1529, allocations: 19.91 kB / 433.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.892e-05/0.153, allocations: 35.8 kB / 433.4 MB, free: 4.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.1531, allocations: 71.98 kB / 433.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.927e-05/0.1531, allocations: 4 kB / 433.5 MB, free: 4.602 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1531, allocations: 4 kB / 433.5 MB, free: 4.598 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1532, allocations: 0 / 433.5 MB, free: 4.598 MB / 366.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.0006906/0.1538, allocations: 387.3 kB / 433.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.1539, allocations: 8.031 kB / 433.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.716e-05/0.154, allocations: 12.84 kB / 433.9 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.1542, allocations: 180.2 kB / 434 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.1542, allocations: 8.375 kB / 434.1 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.1542, allocations: 12.38 kB / 434.1 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.1545, allocations: 81.95 kB / 434.1 MB, free: 3.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1545, allocations: 0 / 434.1 MB, free: 3.832 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.1545, allocations: 8 kB / 434.2 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.1545, allocations: 3.938 kB / 434.2 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001341/0.1547, allocations: 47.91 kB / 434.2 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006653/0.1553, allocations: 332.6 kB / 434.5 MB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.1555, allocations: 86.55 kB / 434.6 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.02e-05/0.1556, allocations: 40.84 kB / 434.7 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.1557, allocations: 0 / 434.7 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.1559, allocations: 107.4 kB / 434.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.1559, allocations: 0 / 434.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.000479/0.1564, allocations: 185.9 kB / 434.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.1565, allocations: 59.39 kB / 435 MB, free: 2.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.1566, allocations: 114.1 kB / 435.1 MB, free: 2.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.1566, allocations: 33.7 kB / 435.1 MB, free: 2.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.1567, allocations: 88.36 kB / 435.2 MB, free: 2.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.101e-05/0.1567, allocations: 43.53 kB / 435.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.44e-05/0.1568, allocations: 41.7 kB / 435.3 MB, free: 2.547 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1569, allocations: 326.7 kB / 435.6 MB, free: 2.219 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.454e-05/0.157, allocations: 31.98 kB / 435.7 MB, free: 2.188 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.1572, allocations: 81.12 kB / 435.7 MB, free: 2.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.1574, allocations: 121.1 kB / 435.9 MB, free: 1.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1574, allocations: 0 / 435.9 MB, free: 1.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002511/0.1576, allocations: 165.3 kB / 436 MB, free: 1.785 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1577, allocations: 4 kB / 436 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1577, allocations: 7.938 kB / 436 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1577, allocations: 0 / 436 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.1578, allocations: 31.86 kB / 436.1 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1578, allocations: 4 kB / 436.1 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.931e-05/0.1579, allocations: 11.94 kB / 436.1 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1579, allocations: 4 kB / 436.1 MB, free: 1.723 MB / 366.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.0001118/0.158, allocations: 140.1 kB / 436.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.1581, allocations: 11.89 kB / 436.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.191e-05/0.1581, allocations: 12.5 kB / 436.2 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1581, allocations: 3.938 kB / 436.2 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.1581, allocations: 384 / 436.2 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1581, allocations: 0 / 436.2 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005019/0.1586, allocations: 450.5 kB / 436.7 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1587, allocations: 3.938 kB / 436.7 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.276e-05/0.1587, allocations: 15.92 kB / 436.7 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1587, allocations: 4 kB / 436.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1587, allocations: 0 / 436.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1587, allocations: 0 / 436.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1588, allocations: 0 / 436.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.159, allocations: 251.4 kB / 437 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.142e-05/0.1591, allocations: 92.83 kB / 437 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.1591, allocations: 11.98 kB / 437.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.1592, allocations: 8 kB / 437.1 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.1593, allocations: 15.97 kB / 437.1 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.1593, allocations: 7.984 kB / 437.1 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.341e-05/0.1594, allocations: 87.28 kB / 437.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1594, allocations: 0 / 437.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.1596, allocations: 23.98 kB / 437.2 MB, free: 0.5117 MB / 366.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.0001129/0.1597, allocations: 103.2 kB / 437.3 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00024/0.16, allocations: 111.8 kB / 437.4 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.16, allocations: 0 / 437.4 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.1601, allocations: 51.92 kB / 437.5 MB, free: 244 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.1604, allocations: 15.92 kB / 437.5 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004337/0.1608, allocations: 217.5 kB / 437.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.1611, allocations: 0.6926 MB / 438.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.944e-05/0.1611, allocations: 8.875 kB / 438.4 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.663e-05/0.1612, allocations: 15.44 kB / 438.4 MB, free: 15.24 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1612, allocations: 0 / 438.4 MB, free: 15.24 MB / 382.1 MB Notification: Performance of Templates: time 0.003258/0.1645, allocations: 0.9144 MB / 439.3 MB, free: 14.33 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)