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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001809/0.001809, allocations: 187.7 kB / 7.84 MB, free: 2.469 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.832/1.832, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001305/0.001305, allocations: 91.22 kB / 261.5 MB, free: 13.62 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.101/0.101, allocations: 12.59 MB / 322 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2669/0.368, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.4723, allocations: 50.37 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3046/0.777, allocations: 78.36 MB / 0.4953 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.7773, allocations: 59.73 kB / 0.4954 GB, free: 12 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.01012/0.7874, allocations: 2.258 MB / 0.4976 GB, free: 11.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.7875, allocations: 19.56 kB / 0.4976 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.344e-05/0.7876, allocations: 17.02 kB / 0.4976 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.7878, allocations: 196.5 kB / 0.4978 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.7879, allocations: 3.844 kB / 0.4978 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.7879, allocations: 8.781 kB / 0.4978 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002531/0.7882, allocations: 71.5 kB / 0.4979 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.7887, allocations: 232.4 kB / 0.4981 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.7887, allocations: 0 / 0.4981 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.7887, allocations: 2.734 kB / 0.4981 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.7888, allocations: 3.844 kB / 0.4981 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006716/0.7894, allocations: 323.3 kB / 0.4984 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.7898, allocations: 165.3 kB / 0.4986 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.79, allocations: 74.02 kB / 0.4987 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.7901, allocations: 5.422 kB / 0.4987 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.7903, allocations: 101.2 kB / 0.4988 GB, free: 10.81 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.284e-06/0.7903, allocations: 0 / 0.4988 GB, free: 10.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004771/0.7908, allocations: 175.7 kB / 0.4989 GB, free: 10.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/0.7909, allocations: 86.89 kB / 0.499 GB, free: 10.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.791, allocations: 134.2 kB / 0.4991 GB, free: 10.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.7911, allocations: 33.81 kB / 0.4992 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.242e-05/0.7911, allocations: 97.44 kB / 0.4993 GB, free: 10.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.81e-05/0.7912, allocations: 38.38 kB / 0.4993 GB, free: 10.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/0.7912, allocations: 0 / 0.4993 GB, free: 10.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.717e-05/0.7913, allocations: 329.6 kB / 0.4996 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.716e-05/0.7914, allocations: 35.36 kB / 0.4996 GB, free: 10.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.7915, allocations: 149.8 kB / 0.4998 GB, free: 9.969 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001526/0.7917, allocations: 64.64 kB / 0.4998 GB, free: 9.961 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.7917, allocations: 0 / 0.4998 GB, free: 9.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003898/0.7921, allocations: 194.2 kB / 0.5 GB, free: 9.898 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.7921, allocations: 3.812 kB / 0.5 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.7922, allocations: 3.719 kB / 0.5 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.7922, allocations: 8.219 kB / 0.5 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.7924, allocations: 47.73 kB / 0.5001 GB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.7925, allocations: 7.594 kB / 0.5001 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.7926, allocations: 13.22 kB / 0.5001 GB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.7926, allocations: 10.7 kB / 0.5001 GB, free: 9.879 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.0001518/0.7928, allocations: 132.8 kB / 0.5003 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.793, allocations: 81.53 kB / 0.5003 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.35e-05/0.793, allocations: 20.83 kB / 0.5003 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.7931, allocations: 3.906 kB / 0.5004 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.7931, allocations: 1.406 kB / 0.5004 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.7931, allocations: 0 / 0.5004 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005814/0.7937, allocations: 409.5 kB / 0.5007 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.7937, allocations: 0 / 0.5007 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.7939, allocations: 19.38 kB / 0.5008 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.7939, allocations: 3.906 kB / 0.5008 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.7939, allocations: 10.38 kB / 0.5008 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.7939, allocations: 0 / 0.5008 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.794, allocations: 7.906 kB / 0.5008 GB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004112/0.7944, allocations: 285.9 kB / 0.5011 GB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004869/0.7949, allocations: 0.6593 MB / 0.5017 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.202e-05/0.7949, allocations: 96.02 kB / 0.5018 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.759e-05/0.795, allocations: 6.906 kB / 0.5018 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.7952, allocations: 10.94 kB / 0.5018 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.7953, allocations: 14.02 kB / 0.5018 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.7953, allocations: 9.156 kB / 0.5018 GB, free: 8.617 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.743e-05/0.7954, allocations: 111.8 kB / 0.5019 GB, free: 8.539 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001208/0.7967, allocations: 31.88 kB / 0.502 GB, free: 8.535 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.0001233/0.7968, allocations: 103.8 kB / 0.5021 GB, free: 8.441 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000348/0.7972, allocations: 149.6 kB / 0.5022 GB, free: 8.422 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.7972, allocations: 320 / 0.5022 GB, free: 8.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.7973, allocations: 48.97 kB / 0.5023 GB, free: 8.418 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.7977, allocations: 45.52 kB / 0.5023 GB, free: 8.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006934/0.7984, allocations: 213.1 kB / 0.5025 GB, free: 8.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.7988, allocations: 0.7507 MB / 0.5032 GB, free: 7.602 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.7988, allocations: 4 kB / 0.5032 GB, free: 7.598 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)