Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestTransferFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction,fileNamePrefix="Modelica_Synchronous_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.001677/0.001677, allocations: 182 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.134/2.134, allocations: 205.2 MB / 219 MB, free: 9.207 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.001143/0.001142, allocations: 99.77 kB / 267.1 MB, free: 9.289 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.1159/0.1159, allocations: 12.58 MB / 327.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.944e-05/3.955e-05, allocations: 4 kB / 386.1 MB, free: 69.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1043, allocations: 50.38 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4522/0.5566, allocations: 79.09 MB / 0.5035 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.5569, allocations: 66.31 kB / 0.5035 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009925/0.5668, allocations: 2.15 MB / 0.5056 GB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5669, allocations: 0 / 0.5056 GB, free: 11.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.5669, allocations: 3.844 kB / 0.5056 GB, free: 11.49 MB / 330.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.00078/0.5677, allocations: 440 kB / 0.5061 GB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.5678, allocations: 11.31 kB / 0.5061 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.016e-05/0.5679, allocations: 45.08 kB / 0.5061 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/0.5679, allocations: 15.34 kB / 0.5061 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.5682, allocations: 200.9 kB / 0.5063 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.5682, allocations: 11.3 kB / 0.5063 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.5682, allocations: 14.42 kB / 0.5063 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000579/0.5688, allocations: 233 kB / 0.5066 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.5689, allocations: 0 / 0.5066 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.5689, allocations: 10.64 kB / 0.5066 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.5689, allocations: 0 / 0.5066 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.5691, allocations: 66.44 kB / 0.5066 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006802/0.5698, allocations: 357.8 kB / 0.507 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.5702, allocations: 183.6 kB / 0.5072 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.5704, allocations: 82.53 kB / 0.5072 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.5705, allocations: 3.781 kB / 0.5072 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.5707, allocations: 99.97 kB / 0.5073 GB, free: 10.31 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 4.238e-06/0.5707, allocations: 0 / 0.5073 GB, free: 10.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005732/0.5713, allocations: 217.4 kB / 0.5075 GB, free: 10.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.5714, allocations: 96.03 kB / 0.5076 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.5716, allocations: 140.3 kB / 0.5078 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.5716, allocations: 33.39 kB / 0.5078 GB, free: 10.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.32e-05/0.5717, allocations: 102.7 kB / 0.5079 GB, free: 9.922 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.5717, allocations: 32.83 kB / 0.5079 GB, free: 9.898 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.361e-05/0.5718, allocations: 10.12 kB / 0.5079 GB, free: 9.898 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.5718, allocations: 329.8 kB / 0.5083 GB, free: 9.578 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.572, allocations: 41.48 kB / 0.5083 GB, free: 9.566 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.5721, allocations: 144.6 kB / 0.5084 GB, free: 9.426 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.5723, allocations: 75.86 kB / 0.5085 GB, free: 9.402 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5723, allocations: 0 / 0.5085 GB, free: 9.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004561/0.5728, allocations: 214.2 kB / 0.5087 GB, free: 9.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.5728, allocations: 7.469 kB / 0.5087 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.5728, allocations: 8.656 kB / 0.5087 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.5729, allocations: 11.53 kB / 0.5087 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.5731, allocations: 38.84 kB / 0.5088 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.5732, allocations: 3.812 kB / 0.5088 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.5733, allocations: 19.62 kB / 0.5088 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.5734, allocations: 11.62 kB / 0.5088 GB, free: 9.297 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: transferFunction2.y:DISCRETE(fixed = false ) "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 () * 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.0001882/0.5736, allocations: 141.5 kB / 0.5089 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.5737, allocations: 97.59 kB / 0.509 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.609e-05/0.5738, allocations: 15.53 kB / 0.509 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.5738, allocations: 3.844 kB / 0.5091 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.5739, allocations: 0 / 0.5091 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.5739, allocations: 0 / 0.5091 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007228/0.5746, allocations: 484.2 kB / 0.5095 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.5746, allocations: 0 / 0.5095 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.5748, allocations: 23.45 kB / 0.5095 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.5748, allocations: 3.984 kB / 0.5095 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.5749, allocations: 7.828 kB / 0.5095 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.5749, allocations: 0 / 0.5095 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5749, allocations: 0 / 0.5095 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005144/0.5754, allocations: 339.9 kB / 0.5099 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.5755, allocations: 92.67 kB / 0.51 GB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.5756, allocations: 18.02 kB / 0.51 GB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.5758, allocations: 18.45 kB / 0.51 GB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.5759, allocations: 7.609 kB / 0.51 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.5759, allocations: 3.531 kB / 0.51 GB, free: 8.426 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000105/0.576, allocations: 126.3 kB / 0.5101 GB, free: 8.336 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.576, allocations: 0 / 0.5101 GB, free: 8.336 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004289/0.5765, allocations: 37.11 kB / 0.5102 GB, free: 8.332 MB / 330.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]) * 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.0009924/0.5775, allocations: 1.031 MB / 0.5112 GB, free: 7.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004076/0.5779, allocations: 149.1 kB / 0.5113 GB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5779, allocations: 4 kB / 0.5113 GB, free: 7.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.578, allocations: 41.25 kB / 0.5114 GB, free: 7.492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.5785, allocations: 55.89 kB / 0.5114 GB, free: 7.477 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009685/0.5795, allocations: 275.9 kB / 0.5117 GB, free: 7.301 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.5797, allocations: 0.7272 MB / 0.5124 GB, free: 6.586 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.097e-05/0.5798, allocations: 12.89 kB / 0.5124 GB, free: 6.582 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.984e-05/0.5799, allocations: 38.39 kB / 0.5124 GB, free: 6.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5799, allocations: 4 kB / 0.5124 GB, free: 6.566 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02894/0.6088, allocations: 2.784 MB / 0.5152 GB, free: 5.156 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002974/0.6092, allocations: 174.9 kB / 0.5153 GB, free: 4.93 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.093, allocations: 0 / 0.5153 GB, free: 4.93 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestTransferFunction_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestTransferFunction.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction.pipe 2>&1)