Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",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.00278/0.00278, allocations: 191.9 kB / 7.849 MB, free: 2.465 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.958/1.958, allocations: 205.2 MB / 213.4 MB, free: 13.92 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: 95.52 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.1195/0.1195, allocations: 12.59 MB / 322 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2522/0.3718, allocations: 56.49 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.4883, allocations: 50.37 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.329/0.8173, allocations: 81.32 MB / 0.4982 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.8177, allocations: 71.83 kB / 0.4983 GB, free: 11.87 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.03331/0.851, allocations: 7.285 MB / 0.5054 GB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.8511, allocations: 7.844 kB / 0.5054 GB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.8512, allocations: 38.84 kB / 0.5054 GB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.8517, allocations: 275.9 kB / 0.5057 GB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002918/0.852, allocations: 132.2 kB / 0.5058 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-05/0.8521, allocations: 15.38 kB / 0.5058 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001153/0.8533, allocations: 421.8 kB / 0.5062 GB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.8544, allocations: 465.6 kB / 0.5067 GB, free: 9.559 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.8545, allocations: 4 kB / 0.5067 GB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.717e-05/0.8545, allocations: 0 / 0.5067 GB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.8545, allocations: 7.688 kB / 0.5067 GB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.8569, allocations: 0.9716 MB / 0.5077 GB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.8585, allocations: 365.2 kB / 0.508 GB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000947/0.8595, allocations: 192.6 kB / 0.5082 GB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.8597, allocations: 8.031 kB / 0.5082 GB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.8598, allocations: 45.12 kB / 0.5082 GB, free: 8.676 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 6.993e-06/0.8598, allocations: 1.562 kB / 0.5082 GB, free: 8.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.02481/0.8846, allocations: 2.035 MB / 0.5102 GB, free: 8.156 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.8848, allocations: 138.4 kB / 0.5104 GB, free: 8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000437/0.8853, allocations: 181.9 kB / 0.5105 GB, free: 7.883 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002151/0.8855, allocations: 25.7 kB / 0.5106 GB, free: 7.852 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.784e-05/0.8856, allocations: 133.5 kB / 0.5107 GB, free: 7.734 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003696/0.886, allocations: 177.8 kB / 0.5109 GB, free: 7.605 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.8862, allocations: 4 kB / 0.5109 GB, free: 7.602 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.8864, allocations: 343.6 kB / 0.5112 GB, free: 7.277 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.8884, allocations: 468 kB / 0.5116 GB, free: 7.273 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/0.8907, allocations: 0.6313 MB / 0.5122 GB, free: 7.047 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.8925, allocations: 417 kB / 0.5126 GB, free: 6.996 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.82e-05/0.8926, allocations: 2.5 kB / 0.5126 GB, free: 6.996 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00488/0.8975, allocations: 1.061 MB / 0.5137 GB, free: 6.848 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.8976, allocations: 5.344 kB / 0.5137 GB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.8977, allocations: 5.594 kB / 0.5137 GB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.991e-05/0.8977, allocations: 9.719 kB / 0.5137 GB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004413/0.9022, allocations: 233.4 kB / 0.5139 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.618e-05/0.9023, allocations: 12.41 kB / 0.5139 GB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003153/0.9054, allocations: 120.9 kB / 0.5141 GB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/0.9057, allocations: 33 kB / 0.5141 GB, free: 6.734 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.0004792/0.9062, allocations: 127.4 kB / 0.5142 GB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007251/0.907, allocations: 138.5 kB / 0.5143 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.9072, allocations: 40.86 kB / 0.5144 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.9073, allocations: 8.219 kB / 0.5144 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-05/0.9073, allocations: 1.562 kB / 0.5144 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/0.9073, allocations: 12.78 kB / 0.5144 GB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009509/0.9169, allocations: 1.923 MB / 0.5163 GB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.311e-05/0.917, allocations: 9.625 kB / 0.5163 GB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/0.9194, allocations: 207 kB / 0.5165 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.694e-05/0.9195, allocations: 16.12 kB / 0.5165 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001995/0.9197, allocations: 13.75 kB / 0.5165 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.763e-05/0.9198, allocations: 25.61 kB / 0.5165 GB, free: 5.375 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.491e-05/0.9198, allocations: 14.94 kB / 0.5165 GB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004659/0.9245, allocations: 1.704 MB / 0.5182 GB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005994/0.9306, allocations: 2.367 MB / 0.5205 GB, free: 2.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005531/0.9312, allocations: 162.4 kB / 0.5207 GB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001907/0.9314, allocations: 17.89 kB / 0.5207 GB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/0.933, allocations: 103.5 kB / 0.5208 GB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003019/0.9333, allocations: 88.58 kB / 0.5209 GB, free: 1.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.364e-05/0.9334, allocations: 34.83 kB / 0.5209 GB, free: 1.949 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001866/0.9336, allocations: 140 kB / 0.521 GB, free: 1.867 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001909/0.9356, allocations: 105 kB / 0.5211 GB, free: 1.863 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.0002335/0.9358, allocations: 130.6 kB / 0.5213 GB, free: 1.746 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002336/0.9382, allocations: 0.8309 MB / 0.5221 GB, free: 1.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/0.9382, allocations: 1.25 kB / 0.5221 GB, free: 1.691 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007791/0.939, allocations: 221.2 kB / 0.5223 GB, free: 1.656 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.9401, allocations: 106.2 kB / 0.5224 GB, free: 1.637 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.9435, allocations: 0.9297 MB / 0.5233 GB, free: 0.957 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/0.9446, allocations: 0.8783 MB / 0.5242 GB, free: 192 kB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.9446, allocations: 3.938 kB / 0.5242 GB, free: 188 kB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1)