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.001322/0.001322, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002075/0.002075, allocations: 190.7 kB / 16.25 MB, free: 6.629 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.652/1.652, allocations: 205.1 MB / 222.1 MB, free: 4.668 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.3673/0.3673, allocations: 37.98 MB / 307.4 MB, free: 10.05 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.001387/0.001387, allocations: 74.91 kB / 374.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1443, allocations: 56.46 MB / 431.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002846/0.1471, allocations: 1.57 MB / 432.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000962/0.1481, allocations: 0.5269 MB / 433.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.151e-05/0.1482, allocations: 0 / 433.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.983e-05/0.1483, allocations: 3.984 kB / 433.3 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.1484, allocations: 15.86 kB / 433.3 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.1486, allocations: 27.97 kB / 433.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.1487, allocations: 87.77 kB / 433.4 MB, free: 4.727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.1489, allocations: 31.81 kB / 433.5 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.149, allocations: 39.8 kB / 433.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.99e-05/0.1491, allocations: 39.83 kB / 433.5 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.1492, allocations: 4 kB / 433.5 MB, free: 4.613 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.115e-05/0.1492, allocations: 8 kB / 433.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.629e-05/0.1492, allocations: 23.91 kB / 433.6 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.326e-05/0.1493, allocations: 35.86 kB / 433.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.1495, allocations: 72 kB / 433.7 MB, free: 4.477 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1495, allocations: 0 / 433.7 MB, free: 4.477 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1495, allocations: 4 kB / 433.7 MB, free: 4.473 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1495, allocations: 0 / 433.7 MB, free: 4.473 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.0007579/0.1502, allocations: 399.2 kB / 434.1 MB, free: 4.035 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1503, allocations: 15.83 kB / 434.1 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.577e-05/0.1503, allocations: 12.84 kB / 434.1 MB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.1505, allocations: 180.2 kB / 434.3 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.1505, allocations: 8.375 kB / 434.3 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.1506, allocations: 8.375 kB / 434.3 MB, free: 3.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.1508, allocations: 85.95 kB / 434.4 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1508, allocations: 0 / 434.4 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.1508, allocations: 4 kB / 434.4 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1508, allocations: 0 / 434.4 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001394/0.151, allocations: 43.97 kB / 434.4 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.1515, allocations: 332.6 kB / 434.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.1517, allocations: 90.48 kB / 434.8 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.698e-05/0.1518, allocations: 40.84 kB / 434.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.1518, allocations: 0 / 434.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.152, allocations: 107.5 kB / 435 MB, free: 3.008 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 2.215e-06/0.152, allocations: 0 / 435 MB, free: 3.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004453/0.1525, allocations: 193.5 kB / 435.2 MB, free: 2.812 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.1526, allocations: 55.41 kB / 435.2 MB, free: 2.746 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.1527, allocations: 117.8 kB / 435.3 MB, free: 2.621 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1527, allocations: 33.7 kB / 435.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.519e-05/0.1528, allocations: 84.42 kB / 435.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.1528, allocations: 39.55 kB / 435.5 MB, free: 2.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.1529, allocations: 37.7 kB / 435.5 MB, free: 2.414 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1531, allocations: 330.8 kB / 435.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.252e-05/0.1531, allocations: 27.98 kB / 435.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.1533, allocations: 77.12 kB / 435.9 MB, free: 1.961 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.1535, allocations: 129.2 kB / 436.1 MB, free: 1.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1535, allocations: 0 / 436.1 MB, free: 1.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002696/0.1538, allocations: 169.4 kB / 436.2 MB, free: 1.645 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1538, allocations: 4 kB / 436.2 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1538, allocations: 4 kB / 436.2 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1538, allocations: 3.984 kB / 436.3 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.1539, allocations: 23.88 kB / 436.3 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.154, allocations: 7.984 kB / 436.3 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.922e-05/0.154, allocations: 15.92 kB / 436.3 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.154, allocations: 4 kB / 436.3 MB, free: 1.582 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.0001079/0.1542, allocations: 132.1 kB / 436.4 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.1542, allocations: 7.906 kB / 436.4 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.789e-05/0.1542, allocations: 16.48 kB / 436.5 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1542, allocations: 11.81 kB / 436.5 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1542, allocations: 0 / 436.5 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1542, allocations: 0 / 436.5 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004947/0.1547, allocations: 438.4 kB / 436.9 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1548, allocations: 4.312 kB / 436.9 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.461e-05/0.1548, allocations: 15.94 kB / 436.9 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1548, allocations: 7.984 kB / 436.9 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.1548, allocations: 0 / 436.9 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1549, allocations: 3.938 kB / 436.9 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1549, allocations: 0 / 436.9 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.1552, allocations: 255.4 kB / 437.2 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/0.1552, allocations: 88.89 kB / 437.3 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.1553, allocations: 8 kB / 437.3 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.1554, allocations: 11.98 kB / 437.3 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.1554, allocations: 7.984 kB / 437.3 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.1554, allocations: 4 kB / 437.3 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.97e-05/0.1555, allocations: 95.27 kB / 437.4 MB, free: 412 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1555, allocations: 0 / 437.4 MB, free: 412 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002384/0.1557, allocations: 24 kB / 437.4 MB, free: 388 kB / 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.0001131/0.1559, allocations: 107.1 kB / 437.5 MB, free: 268 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002583/0.1561, allocations: 111.8 kB / 437.6 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1561, allocations: 0 / 437.6 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.1563, allocations: 51.98 kB / 437.7 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.1566, allocations: 15.92 kB / 437.7 MB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005179/0.1571, allocations: 220 kB / 437.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.1574, allocations: 0.6924 MB / 438.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.703e-05/0.1575, allocations: 12.88 kB / 438.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.1575, allocations: 15.44 kB / 438.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1575, allocations: 3.938 kB / 438.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of Templates: time 0.003604/0.1611, allocations: 0.9764 MB / 439.6 MB, free: 14.12 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)