Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",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.001707/0.001707, allocations: 188.4 kB / 7.845 MB, free: 2.504 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.846/1.846, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.001294/0.001294, allocations: 102.9 kB / 261.5 MB, free: 13.61 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.1007/0.1007, allocations: 12.58 MB / 322 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2458/0.3466, allocations: 56.5 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.4429, allocations: 50.36 MB / 428.8 MB, free: 25.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3175/0.7605, allocations: 81.18 MB / 0.4981 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.7608, allocations: 76.28 kB / 0.4981 GB, free: 11.92 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.03059/0.7914, allocations: 6.661 MB / 0.5047 GB, free: 10.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.7915, allocations: 11.53 kB / 0.5047 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.7916, allocations: 34.88 kB / 0.5047 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.7921, allocations: 258.9 kB / 0.5049 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002885/0.7924, allocations: 144.2 kB / 0.5051 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.707e-05/0.7925, allocations: 15.38 kB / 0.5051 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001149/0.7936, allocations: 408.7 kB / 0.5055 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.7948, allocations: 456.4 kB / 0.5059 GB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/0.7948, allocations: 7.906 kB / 0.5059 GB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.842e-05/0.7949, allocations: 0 / 0.5059 GB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.7949, allocations: 7.5 kB / 0.5059 GB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.7972, allocations: 0.9711 MB / 0.5069 GB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.7986, allocations: 360.7 kB / 0.5072 GB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.7991, allocations: 198.3 kB / 0.5074 GB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.054e-05/0.7992, allocations: 3.812 kB / 0.5074 GB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.7993, allocations: 45.97 kB / 0.5075 GB, free: 8.973 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 6.943e-06/0.7993, allocations: 0 / 0.5075 GB, free: 8.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01833/0.8177, allocations: 2.027 MB / 0.5094 GB, free: 8.453 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.8178, allocations: 143 kB / 0.5096 GB, free: 8.293 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003253/0.8182, allocations: 174.7 kB / 0.5097 GB, free: 8.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.8183, allocations: 25.7 kB / 0.5098 GB, free: 8.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.919e-05/0.8184, allocations: 136.4 kB / 0.5099 GB, free: 8.031 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/0.8187, allocations: 182.2 kB / 0.5101 GB, free: 7.898 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.8188, allocations: 5.031 kB / 0.5101 GB, free: 7.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.329e-05/0.8189, allocations: 348.4 kB / 0.5104 GB, free: 7.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.8202, allocations: 467.3 kB / 0.5109 GB, free: 7.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.8217, allocations: 0.6325 MB / 0.5115 GB, free: 7.332 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.8228, allocations: 420.7 kB / 0.5119 GB, free: 7.281 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.8229, allocations: 1.156 kB / 0.5119 GB, free: 7.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003143/0.826, allocations: 1.051 MB / 0.5129 GB, free: 7.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.8261, allocations: 9.484 kB / 0.5129 GB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.8261, allocations: 5.5 kB / 0.5129 GB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.384e-05/0.8262, allocations: 9.625 kB / 0.5129 GB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002983/0.8292, allocations: 233.1 kB / 0.5131 GB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.164e-05/0.8293, allocations: 13.59 kB / 0.5132 GB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/0.8315, allocations: 124.5 kB / 0.5133 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/0.8317, allocations: 28.19 kB / 0.5133 GB, free: 7.023 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003439/0.8321, allocations: 124.5 kB / 0.5134 GB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005019/0.8326, allocations: 140.6 kB / 0.5136 GB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.8327, allocations: 45.2 kB / 0.5136 GB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.8328, allocations: 7.781 kB / 0.5136 GB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/0.8328, allocations: 4.938 kB / 0.5136 GB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.8328, allocations: 9.203 kB / 0.5136 GB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006687/0.8395, allocations: 1.905 MB / 0.5155 GB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.568e-05/0.8396, allocations: 10.69 kB / 0.5155 GB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/0.8414, allocations: 206.1 kB / 0.5157 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.154e-05/0.8414, allocations: 15.09 kB / 0.5157 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.8416, allocations: 20.12 kB / 0.5157 GB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.22e-05/0.8416, allocations: 22.34 kB / 0.5157 GB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.687e-05/0.8416, allocations: 14.78 kB / 0.5158 GB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002724/0.8443, allocations: 1.712 MB / 0.5174 GB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00358/0.848, allocations: 2.368 MB / 0.5197 GB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004015/0.8485, allocations: 161.8 kB / 0.5199 GB, free: 2.328 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.8486, allocations: 21.39 kB / 0.5199 GB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.8499, allocations: 92.11 kB / 0.52 GB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003599/0.8503, allocations: 92.69 kB / 0.5201 GB, free: 2.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.8504, allocations: 36.66 kB / 0.5201 GB, free: 2.246 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002354/0.8506, allocations: 136.2 kB / 0.5203 GB, free: 2.164 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001928/0.8526, allocations: 104.6 kB / 0.5204 GB, free: 2.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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 Backend phase and start with SimCode phase: time 0.0002529/0.8529, allocations: 131.3 kB / 0.5205 GB, free: 2.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.8554, allocations: 0.8296 MB / 0.5213 GB, free: 1.988 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/0.8555, allocations: 2.031 kB / 0.5213 GB, free: 1.988 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008563/0.8563, allocations: 223.1 kB / 0.5215 GB, free: 1.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.8575, allocations: 112.5 kB / 0.5216 GB, free: 1.926 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003614/0.8611, allocations: 0.9349 MB / 0.5225 GB, free: 1.242 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/0.8622, allocations: 0.8745 MB / 0.5234 GB, free: 484 kB / 330.7 MB Notification: Performance of SimCode: time 1.843e-06/0.8623, allocations: 0 / 0.5234 GB, free: 484 kB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1)