Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestTransferFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestTransferFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008895/0.0008895, allocations: 177.5 kB / 16.77 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.265/1.265, allocations: 205.4 MB / 222.9 MB, free: 8.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006973/0.0006974, allocations: 86.41 kB / 271.3 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06386/0.06386, allocations: 12.21 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004196/0.0004197, allocations: 19.98 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07302/0.07346, allocations: 50.28 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction): time 0.001523/0.07501, allocations: 1.403 MB / 443.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007877/0.07583, allocations: 0.5233 MB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.234e-05/0.07594, allocations: 4 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001085/0.07606, allocations: 3.938 kB / 444.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.478e-05/0.07614, allocations: 19.84 kB / 444.4 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004555/0.07661, allocations: 87.84 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.07675, allocations: 115.6 kB / 444.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.904e-05/0.07686, allocations: 28.88 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.07697, allocations: 55.78 kB / 444.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.0771, allocations: 67.72 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.07713, allocations: 7.938 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.848e-05/0.07716, allocations: 4 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.15e-05/0.07721, allocations: 39.89 kB / 444.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.218e-05/0.0773, allocations: 85.36 kB / 444.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.134e-05/0.07739, allocations: 84 kB / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.0774, allocations: 0 / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.07741, allocations: 0 / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.07742, allocations: 0 / 445 MB, free: 14.01 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006434/0.07807, allocations: 450.9 kB / 445.4 MB, free: 13.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.07812, allocations: 8.031 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.07817, allocations: 42.73 kB / 445.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.697e-05/0.07821, allocations: 12.84 kB / 445.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.07838, allocations: 220 kB / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.0784, allocations: 4.375 kB / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.07842, allocations: 8.375 kB / 445.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/0.07883, allocations: 264.6 kB / 446 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.07886, allocations: 4 kB / 446 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.07888, allocations: 3.984 kB / 446 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.07889, allocations: 4 kB / 446 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.07905, allocations: 83.94 kB / 446.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004456/0.0795, allocations: 349.5 kB / 446.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.07976, allocations: 193.2 kB / 446.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.07989, allocations: 81.67 kB / 446.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.07992, allocations: 7.984 kB / 446.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001479/0.08007, allocations: 111.3 kB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 2.094e-06/0.08008, allocations: 0 / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.000477/0.08057, allocations: 289.4 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.08062, allocations: 93.09 kB / 447.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.737e-05/0.08072, allocations: 162.2 kB / 447.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.08074, allocations: 33.7 kB / 447.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.08078, allocations: 104.1 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.08081, allocations: 39.59 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/0.08083, allocations: 4 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.686e-05/0.08088, allocations: 330.8 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.03e-05/0.08096, allocations: 44.38 kB / 447.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.08107, allocations: 155.5 kB / 448 MB, free: 10.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.08131, allocations: 234.3 kB / 448.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.08132, allocations: 4 kB / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002873/0.08161, allocations: 241.1 kB / 448.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.08164, allocations: 4 kB / 448.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.08165, allocations: 4 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.08167, allocations: 8 kB / 448.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.08179, allocations: 31.92 kB / 448.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.0818, allocations: 8.453 kB / 448.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.247e-05/0.08189, allocations: 23.84 kB / 448.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.08191, allocations: 16.31 kB / 448.6 MB, free: 10.05 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: transferFunction2.y:DISCRETE(flow=false fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.transferFunction2.firstTrigger,transferFunction2.firstTrigger,$PRE.transferFunction2.x1,transferFunction2.x1,$PRE.transferFunction2.xext[1],transferFunction2.xext[1],$PRE.transferFunction2.xext[2],transferFunction2.xext[2],$PRE.transferFunction2.x[1],transferFunction2.x[1],$PRE.transferFunction2.y,transferFunction2.y,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition1,sampler.sampleTrigger,$whenCondition2,transferFunction2.sampleTrigger,sampler.y) * Number of discrete states: 0 () * Number of clocked states: 1 (transferFunction1.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001347/0.08205, allocations: 156.5 kB / 448.8 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-05/0.08215, allocations: 97.41 kB / 448.9 MB, free: 9.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.08219, allocations: 24.81 kB / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.0822, allocations: 0 / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.08221, allocations: 3.938 kB / 448.9 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.08222, allocations: 8 kB / 448.9 MB, free: 9.746 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.08268, allocations: 498.2 kB / 449.4 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.08269, allocations: 0 / 449.4 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.343e-05/0.08278, allocations: 16 kB / 449.4 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.08279, allocations: 3.984 kB / 449.4 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.08281, allocations: 8 kB / 449.4 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.08282, allocations: 3.938 kB / 449.4 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.08282, allocations: 4 kB / 449.4 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.08315, allocations: 340.1 kB / 449.7 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.08319, allocations: 88.92 kB / 449.8 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.08323, allocations: 7.984 kB / 449.8 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.08335, allocations: 23.92 kB / 449.9 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.0834, allocations: 7.984 kB / 449.9 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.08343, allocations: 8 kB / 449.9 MB, free: 8.664 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.013e-05/0.0835, allocations: 115.9 kB / 450 MB, free: 8.551 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.0835, allocations: 4 kB / 450 MB, free: 8.547 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002754/0.08378, allocations: 32 kB / 450 MB, free: 8.516 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 (transferFunction2.sampleTrigger,sampler.sampleTrigger,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,transferFunction2.firstTrigger,transferFunction2.y,transferFunction2.x[1],transferFunction2.x1,transferFunction2.xext[1],transferFunction2.xext[2]) * Number of discrete states: 1 (transferFunction2.x[1]) * Number of clocked states: 1 (transferFunction1.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0006828/0.08447, allocations: 0.9745 MB / 451 MB, free: 7.508 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002515/0.08474, allocations: 168.2 kB / 451.2 MB, free: 7.344 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.08475, allocations: 0 / 451.2 MB, free: 7.344 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.478e-05/0.08485, allocations: 56.53 kB / 451.2 MB, free: 7.289 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.08517, allocations: 47.95 kB / 451.3 MB, free: 7.242 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.08635, allocations: 1.044 MB / 452.3 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.08649, allocations: 0.7245 MB / 453 MB, free: 5.344 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.582e-05/0.08656, allocations: 43.42 kB / 453.1 MB, free: 5.301 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.08656, allocations: 0 / 453.1 MB, free: 5.301 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.49/2.576, allocations: 2.192 MB / 455.3 MB, free: 3.105 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestTransferFunction_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestTransferFunction.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe 2>&1)