Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",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.001746/0.001746, allocations: 191.4 kB / 7.847 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.834/1.834, allocations: 205.2 MB / 213.4 MB, free: 13.9 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.00137/0.00137, allocations: 86.16 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.1166/0.1166, allocations: 12.59 MB / 322 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2583/0.375, allocations: 56.5 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.4742, allocations: 50.36 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3551/0.8294, allocations: 81.41 MB / 0.4983 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003373/0.8298, allocations: 76.28 kB / 0.4984 GB, free: 11.97 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.04269/0.8725, allocations: 7.384 MB / 0.5056 GB, free: 10.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.8726, allocations: 7.469 kB / 0.5056 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.8727, allocations: 50.16 kB / 0.5056 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005186/0.8732, allocations: 298.7 kB / 0.5059 GB, free: 9.906 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002796/0.8735, allocations: 127.6 kB / 0.506 GB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.207e-05/0.8736, allocations: 18.22 kB / 0.5061 GB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001157/0.8748, allocations: 418.3 kB / 0.5065 GB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.8759, allocations: 466.6 kB / 0.5069 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.8759, allocations: 3.719 kB / 0.5069 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.876, allocations: 0 / 0.5069 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.876, allocations: 7.5 kB / 0.5069 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.8786, allocations: 0.9895 MB / 0.5079 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.8801, allocations: 362.2 kB / 0.5082 GB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004944/0.8806, allocations: 198.2 kB / 0.5084 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-05/0.8807, allocations: 8.875 kB / 0.5084 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.8808, allocations: 44.41 kB / 0.5085 GB, free: 8.711 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.086e-06/0.8808, allocations: 0 / 0.5085 GB, free: 8.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.0159/0.8967, allocations: 2.068 MB / 0.5105 GB, free: 8.156 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.596e-05/0.8968, allocations: 150 kB / 0.5106 GB, free: 7.992 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004185/0.8973, allocations: 227.8 kB / 0.5109 GB, free: 7.871 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.8974, allocations: 25.7 kB / 0.5109 GB, free: 7.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.8975, allocations: 136.6 kB / 0.511 GB, free: 7.723 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.8978, allocations: 186 kB / 0.5112 GB, free: 7.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.8979, allocations: 0 / 0.5112 GB, free: 7.586 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.681e-05/0.898, allocations: 346 kB / 0.5115 GB, free: 7.262 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.8993, allocations: 471.6 kB / 0.512 GB, free: 7.254 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.9008, allocations: 0.6256 MB / 0.5126 GB, free: 7.035 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.9021, allocations: 425.8 kB / 0.513 GB, free: 6.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.9021, allocations: 1.375 kB / 0.513 GB, free: 6.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00322/0.9053, allocations: 1.059 MB / 0.514 GB, free: 6.824 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.9054, allocations: 4.5 kB / 0.514 GB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/0.9054, allocations: 6.562 kB / 0.514 GB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.704e-05/0.9055, allocations: 10.59 kB / 0.514 GB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.9084, allocations: 238.9 kB / 0.5143 GB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.541e-05/0.9084, allocations: 17.73 kB / 0.5143 GB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/0.9106, allocations: 112.4 kB / 0.5144 GB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.9107, allocations: 29.02 kB / 0.5144 GB, free: 6.711 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.0003376/0.9111, allocations: 132.7 kB / 0.5145 GB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004997/0.9116, allocations: 141.3 kB / 0.5147 GB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.9118, allocations: 46.64 kB / 0.5147 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.9118, allocations: 8.062 kB / 0.5147 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.9119, allocations: 1.125 kB / 0.5147 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.9119, allocations: 5.203 kB / 0.5147 GB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006696/0.9186, allocations: 1.93 MB / 0.5166 GB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.43e-05/0.9187, allocations: 10.47 kB / 0.5166 GB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/0.9204, allocations: 211.4 kB / 0.5168 GB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.572e-05/0.9205, allocations: 14.28 kB / 0.5168 GB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.9206, allocations: 20.52 kB / 0.5169 GB, free: 5.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.279e-05/0.9207, allocations: 18.56 kB / 0.5169 GB, free: 5.355 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.737e-05/0.9207, allocations: 15.84 kB / 0.5169 GB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002695/0.9234, allocations: 1.715 MB / 0.5186 GB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003578/0.927, allocations: 2.369 MB / 0.5209 GB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004441/0.9275, allocations: 182.5 kB / 0.5211 GB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.9277, allocations: 21.58 kB / 0.5211 GB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.9289, allocations: 91.8 kB / 0.5212 GB, free: 1.957 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/0.9293, allocations: 102.2 kB / 0.5213 GB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.408e-05/0.9294, allocations: 31.19 kB / 0.5213 GB, free: 1.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002788/0.9297, allocations: 180.8 kB / 0.5215 GB, free: 1.812 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001968/0.9317, allocations: 105.7 kB / 0.5216 GB, free: 1.812 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.0002466/0.9319, allocations: 125.9 kB / 0.5217 GB, free: 1.699 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002416/0.9344, allocations: 0.8249 MB / 0.5225 GB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/0.9344, allocations: 1.281 kB / 0.5225 GB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008172/0.9352, allocations: 219.5 kB / 0.5227 GB, free: 1.625 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.9364, allocations: 124.2 kB / 0.5228 GB, free: 1.594 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.9401, allocations: 0.9837 MB / 0.5238 GB, free: 0.8789 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/0.9413, allocations: 0.8925 MB / 0.5247 GB, free: 108 kB / 330.7 MB Notification: Performance of SimCode: time 1.743e-06/0.9413, allocations: 0 / 0.5247 GB, free: 108 kB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1)