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.001689/0.00169, allocations: 175.3 kB / 16.77 MB, free: 4.922 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.885/1.885, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008075/0.0008076, allocations: 93.22 kB / 271.3 MB, free: 8.242 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.09601/0.09601, allocations: 12.58 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004692/0.0004693, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestTransferFunction): time 0.001739/0.1143, allocations: 1.399 MB / 444.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007677/0.1151, allocations: 0.535 MB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.1151, allocations: 0 / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.1153, allocations: 15.86 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.505e-05/0.1153, allocations: 11.88 kB / 444.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.1158, allocations: 79.83 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001364/0.116, allocations: 119.6 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1161, allocations: 28.89 kB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.1162, allocations: 51.83 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.1164, allocations: 67.73 kB / 445.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.1164, allocations: 4 kB / 445.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.148e-05/0.1164, allocations: 7.938 kB / 445.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.399e-05/0.1165, allocations: 39.83 kB / 445.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.218e-05/0.1166, allocations: 77.42 kB / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001045/0.1167, allocations: 88.06 kB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1167, allocations: 3.938 kB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1167, allocations: 0 / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.87e-06/0.1167, allocations: 0 / 445.5 MB, free: 13.58 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.0007223/0.1174, allocations: 446.9 kB / 445.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1175, allocations: 12.03 kB / 445.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.1175, allocations: 16.83 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.1177, allocations: 216 kB / 446.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.1178, allocations: 8.375 kB / 446.2 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.1178, allocations: 16.36 kB / 446.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/0.1182, allocations: 252.8 kB / 446.4 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1182, allocations: 0 / 446.4 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.1183, allocations: 0 / 446.4 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.1183, allocations: 4 kB / 446.4 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.1185, allocations: 83.88 kB / 446.5 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004456/0.1189, allocations: 353.5 kB / 446.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.1192, allocations: 189.1 kB / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.1193, allocations: 93.67 kB / 447.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.1193, allocations: 7.984 kB / 447.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.1195, allocations: 111.4 kB / 447.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.933e-06/0.1195, allocations: 0 / 447.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005208/0.12, allocations: 293.4 kB / 447.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.822e-05/0.1201, allocations: 93.05 kB / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.1203, allocations: 150.2 kB / 447.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.1203, allocations: 33.7 kB / 447.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.044e-05/0.1203, allocations: 104.1 kB / 447.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.1204, allocations: 39.59 kB / 447.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-06/0.1204, allocations: 4 kB / 447.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.354e-05/0.1205, allocations: 330.8 kB / 448.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.371e-05/0.1206, allocations: 48.44 kB / 448.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.1207, allocations: 159.5 kB / 448.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.121, allocations: 234.2 kB / 448.7 MB, free: 10 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.121, allocations: 0 / 448.7 MB, free: 10 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003164/0.1213, allocations: 241 kB / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.1213, allocations: 9.469 kB / 448.9 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.1213, allocations: 8 kB / 449 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1214, allocations: 4 kB / 449 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.1215, allocations: 35.92 kB / 449 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.1215, allocations: 4 kB / 449 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.435e-05/0.1216, allocations: 27.78 kB / 449 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1216, allocations: 8 kB / 449 MB, free: 9.664 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.0001561/0.1218, allocations: 163.7 kB / 449.2 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1219, allocations: 93.48 kB / 449.3 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.1219, allocations: 16.84 kB / 449.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1219, allocations: 4 kB / 449.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1219, allocations: 0 / 449.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.122, allocations: 0 / 449.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004812/0.1224, allocations: 0.4943 MB / 449.8 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1225, allocations: 0 / 449.8 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.669e-05/0.1225, allocations: 19.98 kB / 449.8 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1226, allocations: 4 kB / 449.8 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.1226, allocations: 4 kB / 449.8 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1226, allocations: 7.922 kB / 449.8 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1226, allocations: 7.984 kB / 449.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003477/0.123, allocations: 336.1 kB / 450.2 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.711e-05/0.123, allocations: 96.86 kB / 450.3 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.123, allocations: 4 kB / 450.3 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.1232, allocations: 19.92 kB / 450.3 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.1232, allocations: 11.98 kB / 450.3 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.1232, allocations: 7.984 kB / 450.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.951e-05/0.1233, allocations: 119.9 kB / 450.4 MB, free: 8.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1233, allocations: 4 kB / 450.4 MB, free: 8.156 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002583/0.1236, allocations: 28 kB / 450.5 MB, free: 8.129 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.0001134/0.1237, allocations: 111.1 kB / 450.6 MB, free: 8.008 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002783/0.124, allocations: 165.3 kB / 450.7 MB, free: 7.848 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.124, allocations: 4.062 kB / 450.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.896e-05/0.1241, allocations: 55.97 kB / 450.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1244, allocations: 47.95 kB / 450.8 MB, free: 7.742 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000527/0.125, allocations: 372.8 kB / 451.2 MB, free: 7.344 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.1252, allocations: 0.7283 MB / 451.9 MB, free: 6.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.153e-05/0.1252, allocations: 31.3 kB / 452 MB, free: 6.559 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1252, allocations: 0 / 452 MB, free: 6.559 MB / 298.7 MB Notification: Performance of Templates: time 0.002861/0.1281, allocations: 1.819 MB / 453.8 MB, free: 4.738 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)