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.0009595/0.0009596, allocations: 177 kB / 15.82 MB, free: 6.305 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.634/1.634, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008952/0.0008957, allocations: 98.22 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09611/0.09611, allocations: 12.6 MB / 331.2 MB, free: 10.31 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004729/0.0004727, allocations: 13.56 kB / 392.1 MB, free: 54.82 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1047, allocations: 50.38 MB / 442.5 MB, free: 10.88 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction): time 0.001719/0.1064, allocations: 1.4 MB / 443.9 MB, free: 9.461 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0007857/0.1072, allocations: 0.5467 MB / 444.4 MB, free: 8.906 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.834e-05/0.1073, allocations: 0 / 444.4 MB, free: 8.906 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.1074, allocations: 11.92 kB / 444.5 MB, free: 8.895 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 7.703e-05/0.1076, allocations: 15.86 kB / 444.5 MB, free: 8.879 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004138/0.108, allocations: 71.84 kB / 444.5 MB, free: 8.809 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001403/0.1081, allocations: 119.6 kB / 444.7 MB, free: 8.691 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.1082, allocations: 36.88 kB / 444.7 MB, free: 8.656 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.1083, allocations: 51.77 kB / 444.7 MB, free: 8.605 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.1085, allocations: 67.73 kB / 444.8 MB, free: 8.539 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.1085, allocations: 4 kB / 444.8 MB, free: 8.535 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.964e-05/0.1086, allocations: 4 kB / 444.8 MB, free: 8.531 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 5.799e-05/0.1086, allocations: 39.88 kB / 444.9 MB, free: 8.492 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 5.102e-05/0.1087, allocations: 49.58 kB / 444.9 MB, free: 8.438 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.1088, allocations: 80.62 kB / 445 MB, free: 8.359 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1088, allocations: 4 kB / 445 MB, free: 8.355 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1088, allocations: 4 kB / 445 MB, free: 8.352 MB / 282.8 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1088, allocations: 0 / 445 MB, free: 8.352 MB / 282.8 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.0007472/0.1096, allocations: 450.8 kB / 445.4 MB, free: 7.863 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1096, allocations: 8.031 kB / 445.4 MB, free: 7.855 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.617e-05/0.1097, allocations: 46.48 kB / 445.5 MB, free: 7.801 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/0.1097, allocations: 19.75 kB / 445.5 MB, free: 7.781 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.1099, allocations: 210.8 kB / 445.7 MB, free: 7.535 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.1099, allocations: 7.984 kB / 445.7 MB, free: 7.527 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.11, allocations: 12 kB / 445.7 MB, free: 7.516 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004133/0.1104, allocations: 248.5 kB / 446 MB, free: 7.254 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.1104, allocations: 3.938 kB / 446 MB, free: 7.25 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.1104, allocations: 11.98 kB / 446 MB, free: 7.238 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.1105, allocations: 0 / 446 MB, free: 7.238 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.1106, allocations: 79.94 kB / 446.1 MB, free: 7.16 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000448/0.1111, allocations: 357.5 kB / 446.4 MB, free: 6.758 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.1114, allocations: 181.2 kB / 446.6 MB, free: 6.562 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.1115, allocations: 89.67 kB / 446.7 MB, free: 6.469 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.1115, allocations: 7.938 kB / 446.7 MB, free: 6.461 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/0.1117, allocations: 113.5 kB / 446.8 MB, free: 6.34 MB / 282.8 MB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.1117, allocations: 0 / 446.8 MB, free: 6.34 MB / 282.8 MB Notification: Performance of matching and sorting (n=20): time 0.0004961/0.1122, allocations: 289.5 kB / 447.1 MB, free: 6.051 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.1123, allocations: 89.02 kB / 447.2 MB, free: 5.945 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.662e-05/0.1124, allocations: 154.2 kB / 447.3 MB, free: 5.781 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.1124, allocations: 33.69 kB / 447.4 MB, free: 5.742 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/0.1125, allocations: 108.1 kB / 447.5 MB, free: 5.633 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.1125, allocations: 35.59 kB / 447.5 MB, free: 5.598 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.857e-06/0.1125, allocations: 4 kB / 447.5 MB, free: 5.594 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 6.908e-05/0.1126, allocations: 338.8 kB / 447.8 MB, free: 5.254 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.463e-05/0.1127, allocations: 44.44 kB / 447.9 MB, free: 5.211 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.1128, allocations: 155.4 kB / 448 MB, free: 5.008 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.1129, allocations: 83.91 kB / 448.1 MB, free: 4.926 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.113, allocations: 3.938 kB / 448.1 MB, free: 4.922 MB / 282.8 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002965/0.1133, allocations: 233.5 kB / 448.3 MB, free: 4.688 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1133, allocations: 11.98 kB / 448.3 MB, free: 4.676 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1133, allocations: 4 kB / 448.4 MB, free: 4.672 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1133, allocations: 4 kB / 448.4 MB, free: 4.668 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.1135, allocations: 39.92 kB / 448.4 MB, free: 4.629 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1135, allocations: 8.25 kB / 448.4 MB, free: 4.621 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.396e-05/0.1136, allocations: 15.84 kB / 448.4 MB, free: 4.605 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.1136, allocations: 15.95 kB / 448.4 MB, free: 4.59 MB / 282.8 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.0001545/0.1137, allocations: 167.6 kB / 448.6 MB, free: 4.418 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-05/0.1138, allocations: 85.48 kB / 448.7 MB, free: 4.328 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.967e-05/0.1139, allocations: 20.83 kB / 448.7 MB, free: 4.309 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1139, allocations: 4 kB / 448.7 MB, free: 4.305 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1139, allocations: 0 / 448.7 MB, free: 4.305 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1139, allocations: 3.938 kB / 448.7 MB, free: 4.301 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004696/0.1144, allocations: 0.4883 MB / 449.2 MB, free: 3.758 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1144, allocations: 0 / 449.2 MB, free: 3.758 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.807e-05/0.1145, allocations: 23.92 kB / 449.2 MB, free: 3.734 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.1145, allocations: 4 kB / 449.2 MB, free: 3.73 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.1145, allocations: 0 / 449.2 MB, free: 3.73 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1145, allocations: 4 kB / 449.2 MB, free: 3.727 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1145, allocations: 7.953 kB / 449.2 MB, free: 3.719 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003427/0.1149, allocations: 344.1 kB / 449.6 MB, free: 3.363 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.1149, allocations: 92.86 kB / 449.7 MB, free: 3.254 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.115, allocations: 8 kB / 449.7 MB, free: 3.246 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.1151, allocations: 15.98 kB / 449.7 MB, free: 3.23 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.1151, allocations: 11.98 kB / 449.7 MB, free: 3.219 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.1152, allocations: 11.92 kB / 449.7 MB, free: 3.207 MB / 282.8 MB Notification: Performance of sorting global known variables: time 6.336e-05/0.1152, allocations: 123.9 kB / 449.8 MB, free: 3.086 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1153, allocations: 3.938 kB / 449.8 MB, free: 3.082 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002753/0.1155, allocations: 28 kB / 449.9 MB, free: 3.055 MB / 282.8 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.0006943/0.1162, allocations: 0.9711 MB / 450.8 MB, free: 2.051 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0002643/0.1165, allocations: 160.6 kB / 451 MB, free: 1.895 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1165, allocations: 256 / 451 MB, free: 1.895 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 9.925e-05/0.1166, allocations: 59.97 kB / 451 MB, free: 1.836 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.117, allocations: 55.94 kB / 451.1 MB, free: 1.781 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.1183, allocations: 1.002 MB / 452.1 MB, free: 0.6797 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.1185, allocations: 0.7361 MB / 452.8 MB, free: 15.92 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 4.613e-05/0.1185, allocations: 17.42 kB / 452.9 MB, free: 15.9 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.466e-05/0.1186, allocations: 39.42 kB / 452.9 MB, free: 15.86 MB / 298.8 MB Notification: Performance of SimCode: time 2.01e-07/0.1186, allocations: 0 / 452.9 MB, free: 15.86 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01406/0.1327, allocations: 2.786 MB / 455.7 MB, free: 13.08 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.1329, allocations: 213 kB / 455.9 MB, free: 12.84 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/1.799, allocations: 0 / 455.9 MB, free: 12.84 MB / 298.8 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)