Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001477/0.001477, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.583/1.583, allocations: 227.4 MB / 246.8 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2288/0.2288, allocations: 46.12 MB / 344.2 MB, free: 11.53 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002194, allocations: 79.86 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.148, allocations: 62.44 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003602/0.1517, allocations: 1.549 MB / 481.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1529, allocations: 0.5571 MB / 482.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.44e-05/0.153, allocations: 0 / 482.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.274e-05/0.1531, allocations: 7.875 kB / 482.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.285e-05/0.1532, allocations: 11.86 kB / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.1534, allocations: 55.81 kB / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.1536, allocations: 87.77 kB / 482.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1537, allocations: 4 kB / 482.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.1539, allocations: 59.77 kB / 482.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.74e-05/0.154, allocations: 43.83 kB / 482.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.154, allocations: 8 kB / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.601e-05/0.1541, allocations: 8 kB / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.307e-05/0.1541, allocations: 23.91 kB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.735e-05/0.1542, allocations: 39.8 kB / 482.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.1544, allocations: 83.97 kB / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1544, allocations: 0 / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1544, allocations: 0 / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1544, allocations: 0 / 482.7 MB, free: 2.562 MB / 350.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.0007433/0.1552, allocations: 407.3 kB / 483.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1552, allocations: 8.031 kB / 483.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.292e-05/0.1553, allocations: 34.75 kB / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.1555, allocations: 20.83 kB / 483.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.1557, allocations: 192.1 kB / 483.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.1557, allocations: 12.38 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.1558, allocations: 4.375 kB / 483.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.156, allocations: 96.75 kB / 483.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.156, allocations: 0 / 483.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.156, allocations: 8 kB / 483.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.156, allocations: 0 / 483.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.1562, allocations: 43.91 kB / 483.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.1567, allocations: 332.6 kB / 483.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002128/0.157, allocations: 98.52 kB / 484 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.1571, allocations: 52.83 kB / 484 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.1571, allocations: 224 / 484 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.1574, allocations: 107.3 kB / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.1574, allocations: 0 / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004724/0.1579, allocations: 197.6 kB / 484.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.1579, allocations: 55.41 kB / 484.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.158, allocations: 121.8 kB / 484.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.1581, allocations: 33.7 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.369e-05/0.1582, allocations: 92.33 kB / 484.6 MB, free: 484 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.6e-05/0.1582, allocations: 43.55 kB / 484.6 MB, free: 440 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.489e-05/0.1583, allocations: 33.7 kB / 484.7 MB, free: 400 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1584, allocations: 326.8 kB / 485 MB, free: 64 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.1585, allocations: 35.98 kB / 485 MB, free: 28 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.1587, allocations: 75.83 kB / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.1589, allocations: 122.5 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.159, allocations: 3.938 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002984/0.1593, allocations: 161.6 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.1593, allocations: 7.984 kB / 485.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1593, allocations: 4 kB / 485.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.1593, allocations: 0 / 485.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.1595, allocations: 31.86 kB / 485.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.1595, allocations: 4 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.367e-05/0.1595, allocations: 15.84 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.1596, allocations: 8 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,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,$PRE.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.0001213/0.1597, allocations: 128.1 kB / 485.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.1597, allocations: 11.89 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.1598, allocations: 16.5 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1598, allocations: 3.938 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1598, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1598, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006053/0.1604, allocations: 446.4 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.1604, allocations: 3.938 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.909e-05/0.1605, allocations: 11.94 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.1605, allocations: 7.984 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.1605, allocations: 4 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1605, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1605, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.1609, allocations: 251 kB / 486.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.099e-05/0.161, allocations: 96.88 kB / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.161, allocations: 7.938 kB / 486.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.1611, allocations: 19.92 kB / 486.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.1612, allocations: 4 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.1612, allocations: 7.984 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.043e-05/0.1613, allocations: 91.27 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1613, allocations: 0 / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000254/0.1615, allocations: 24 kB / 486.6 MB, free: 14.36 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.0007164/0.1623, allocations: 0.8029 MB / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.1626, allocations: 107.9 kB / 487.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1626, allocations: 4 kB / 487.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.1627, allocations: 56.16 kB / 487.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.163, allocations: 12.77 kB / 487.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.165, allocations: 1.64 MB / 489.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.1653, allocations: 0.7002 MB / 489.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.088e-05/0.1654, allocations: 4.891 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.573e-05/0.1654, allocations: 31.42 kB / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1654, allocations: 0 / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.1891, allocations: 2.196 MB / 492.1 MB, free: 8.711 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/7.959, allocations: 9.906 kB / 492.1 MB, free: 8.703 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)