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-master/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-master/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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003227/0.003233, allocations: 181.6 kB / 16.44 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.454/4.454, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.002045/0.002044, allocations: 90.86 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2002/0.2002, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009752/0.0009755, allocations: 12 kB / 392 MB, free: 66.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1893, allocations: 50.38 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction): time 0.003668/0.1931, allocations: 1.387 MB / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1951, allocations: 0.5351 MB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1953, allocations: 7.938 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.1955, allocations: 7.922 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.1957, allocations: 23.89 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008874/0.1966, allocations: 79.84 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003823/0.197, allocations: 83.81 kB / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1972, allocations: 32.81 kB / 444.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.1975, allocations: 47.83 kB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004602/0.1979, allocations: 71.72 kB / 444.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-05/0.1981, allocations: 4 kB / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.117e-05/0.1982, allocations: 4 kB / 444.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.1984, allocations: 31.91 kB / 444.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.1986, allocations: 53.62 kB / 444.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003765/0.199, allocations: 88 kB / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.1991, allocations: 0 / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.258e-06/0.1991, allocations: 0 / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.1992, allocations: 0 / 444.8 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.002366/0.2016, allocations: 454.6 kB / 445.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.734e-05/0.2017, allocations: 12.03 kB / 445.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.2018, allocations: 11.91 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.2022, allocations: 210.7 kB / 445.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.2023, allocations: 15.98 kB / 445.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.29e-05/0.2024, allocations: 12 kB / 445.5 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009475/0.2033, allocations: 248.5 kB / 445.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.2034, allocations: 0 / 445.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.2035, allocations: 0 / 445.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.2035, allocations: 7.984 kB / 445.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/0.204, allocations: 87.89 kB / 445.8 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009753/0.205, allocations: 345.5 kB / 446.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007186/0.2057, allocations: 197.2 kB / 446.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.362e-05/0.2058, allocations: 4 kB / 446.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004198/0.2063, allocations: 111.3 kB / 446.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 5.12e-06/0.2063, allocations: 0 / 446.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001291/0.2076, allocations: 297.4 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.2078, allocations: 89.33 kB / 446.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000232/0.208, allocations: 154.2 kB / 447 MB, free: 11.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.2081, allocations: 37.62 kB / 447 MB, free: 11.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.694e-05/0.2082, allocations: 166.5 kB / 447.2 MB, free: 11.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.959e-05/0.2083, allocations: 39.75 kB / 447.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.2083, allocations: 8 kB / 447.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.2084, allocations: 318.8 kB / 447.6 MB, free: 11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.2087, allocations: 48.44 kB / 447.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003181/0.2091, allocations: 159.5 kB / 447.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003581/0.2094, allocations: 71.91 kB / 447.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.2095, allocations: 4 kB / 447.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008571/0.2104, allocations: 225.7 kB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.2104, allocations: 4 kB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.2105, allocations: 11.97 kB / 448.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.54e-05/0.2105, allocations: 8 kB / 448.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003464/0.2109, allocations: 39.91 kB / 448.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.291e-05/0.2109, allocations: 12.25 kB / 448.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002914/0.2112, allocations: 19.84 kB / 448.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.2113, allocations: 8 kB / 448.2 MB, free: 10.35 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.0004258/0.2118, allocations: 163.7 kB / 448.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.2121, allocations: 93.48 kB / 448.4 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.2123, allocations: 20.83 kB / 448.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.2123, allocations: 4 kB / 448.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.2123, allocations: 0 / 448.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.2124, allocations: 0 / 448.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.2139, allocations: 494.2 kB / 448.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.214, allocations: 8 kB / 448.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.2143, allocations: 15.98 kB / 448.9 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/0.2143, allocations: 4 kB / 448.9 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.2144, allocations: 0 / 448.9 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.2144, allocations: 0 / 448.9 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.2144, allocations: 7.938 kB / 448.9 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008813/0.2153, allocations: 353.8 kB / 449.3 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.467e-05/0.2154, allocations: 96.84 kB / 449.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.223e-05/0.2155, allocations: 11.98 kB / 449.4 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.2158, allocations: 19.92 kB / 449.4 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.076e-05/0.2159, allocations: 11.98 kB / 449.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.995e-05/0.216, allocations: 8 kB / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001442/0.2162, allocations: 119.9 kB / 449.6 MB, free: 8.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.2162, allocations: 0 / 449.6 MB, free: 8.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007568/0.2169, allocations: 35.94 kB / 449.6 MB, free: 8.793 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.0002272/0.2172, allocations: 111.1 kB / 449.7 MB, free: 8.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008312/0.2181, allocations: 168.6 kB / 449.9 MB, free: 8.508 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.505e-06/0.2181, allocations: 0 / 449.9 MB, free: 8.508 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.2184, allocations: 55.97 kB / 449.9 MB, free: 8.453 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006686/0.2191, allocations: 43.94 kB / 450 MB, free: 8.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.2206, allocations: 380.9 kB / 450.3 MB, free: 8.004 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.221, allocations: 0.7361 MB / 451.1 MB, free: 7.242 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.2211, allocations: 15.44 kB / 451.1 MB, free: 7.227 MB / 298.7 MB Notification: Performance of SimCode: time 1.763e-06/0.2211, allocations: 0 / 451.1 MB, free: 7.227 MB / 298.7 MB Notification: Performance of Templates: time 0.00836/0.2295, allocations: 1.8 MB / 452.9 MB, free: 5.426 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.makefile (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 & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe 2>&1)