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: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") [: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.001121/0.001121, allocations: 184.2 kB / 7.844 MB, free: 2.512 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.205/1.205, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0008776/0.0008776, allocations: 90.33 kB / 261.5 MB, free: 13.55 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.07117/0.07117, allocations: 12.59 MB / 322 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.124e-06/7.153e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09552/0.09554, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2904/0.386, allocations: 81.32 MB / 0.4981 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.3863, allocations: 71.05 kB / 0.4982 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01874/0.405, allocations: 6.688 MB / 0.5047 GB, free: 10.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.4051, allocations: 3.844 kB / 0.5047 GB, free: 10.5 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.0009937/0.4061, allocations: 0.591 MB / 0.5053 GB, free: 10.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.4062, allocations: 7.781 kB / 0.5053 GB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.4063, allocations: 38.69 kB / 0.5053 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.4066, allocations: 272.9 kB / 0.5056 GB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001831/0.4068, allocations: 132.5 kB / 0.5057 GB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.415e-05/0.4069, allocations: 19.45 kB / 0.5058 GB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006757/0.4076, allocations: 413.5 kB / 0.5061 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006736/0.4082, allocations: 461.9 kB / 0.5066 GB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.4083, allocations: 0 / 0.5066 GB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.4083, allocations: 7.938 kB / 0.5066 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.4083, allocations: 7.844 kB / 0.5066 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.4097, allocations: 0.9741 MB / 0.5076 GB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.4108, allocations: 366.7 kB / 0.5079 GB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/0.4111, allocations: 192.2 kB / 0.5081 GB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.385e-05/0.4112, allocations: 5.469 kB / 0.5081 GB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.4112, allocations: 49.16 kB / 0.5081 GB, free: 8.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.146e-06/0.4112, allocations: 0 / 0.5081 GB, free: 8.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.008177/0.4194, allocations: 2.029 MB / 0.5101 GB, free: 8.039 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.4195, allocations: 143.4 kB / 0.5103 GB, free: 7.879 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.4197, allocations: 180.3 kB / 0.5104 GB, free: 7.762 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.15e-05/0.4198, allocations: 25.7 kB / 0.5105 GB, free: 7.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.716e-05/0.4198, allocations: 136.3 kB / 0.5106 GB, free: 7.613 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.42, allocations: 185.5 kB / 0.5108 GB, free: 7.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.978e-05/0.4201, allocations: 0 / 0.5108 GB, free: 7.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.4201, allocations: 345.5 kB / 0.5111 GB, free: 7.156 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006754/0.4208, allocations: 471 kB / 0.5115 GB, free: 7.148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007503/0.4216, allocations: 0.6288 MB / 0.5122 GB, free: 6.926 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006405/0.4222, allocations: 415.3 kB / 0.5125 GB, free: 6.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4223, allocations: 1.469 kB / 0.5126 GB, free: 6.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001671/0.4239, allocations: 1.057 MB / 0.5136 GB, free: 6.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.424, allocations: 5.188 kB / 0.5136 GB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.424, allocations: 6.031 kB / 0.5136 GB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.424, allocations: 10.25 kB / 0.5136 GB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.4255, allocations: 235.6 kB / 0.5138 GB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.4255, allocations: 21.14 kB / 0.5138 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.4266, allocations: 116.9 kB / 0.514 GB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.757e-05/0.4267, allocations: 31.11 kB / 0.514 GB, free: 6.609 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.000215/0.4269, allocations: 128 kB / 0.5141 GB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002959/0.4272, allocations: 136.9 kB / 0.5142 GB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.4273, allocations: 42.7 kB / 0.5143 GB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.4273, allocations: 8.812 kB / 0.5143 GB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.4273, allocations: 0.9062 kB / 0.5143 GB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.4274, allocations: 4.922 kB / 0.5143 GB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.4309, allocations: 1.916 MB / 0.5162 GB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.431, allocations: 11 kB / 0.5162 GB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/0.4318, allocations: 210.6 kB / 0.5164 GB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.041e-05/0.4318, allocations: 15.12 kB / 0.5164 GB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.411e-05/0.4319, allocations: 17.12 kB / 0.5164 GB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.798e-05/0.4319, allocations: 21.67 kB / 0.5164 GB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.265e-05/0.4319, allocations: 14.94 kB / 0.5164 GB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001699/0.4337, allocations: 1.703 MB / 0.5181 GB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.4339, allocations: 168.8 kB / 0.5183 GB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.794e-05/0.4339, allocations: 17.52 kB / 0.5183 GB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006788/0.4346, allocations: 96.23 kB / 0.5184 GB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.4348, allocations: 98.72 kB / 0.5185 GB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.42e-05/0.4349, allocations: 28.91 kB / 0.5185 GB, free: 3.637 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001219/0.4351, allocations: 138.9 kB / 0.5186 GB, free: 3.555 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007581/0.4358, allocations: 104.9 kB / 0.5187 GB, free: 3.551 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.0001845/0.436, allocations: 133.2 kB / 0.5189 GB, free: 3.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.4374, allocations: 0.8298 MB / 0.5197 GB, free: 3.375 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.4374, allocations: 1.406 kB / 0.5197 GB, free: 3.375 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004362/0.4378, allocations: 227.2 kB / 0.5199 GB, free: 3.332 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007033/0.4385, allocations: 102.2 kB / 0.52 GB, free: 3.316 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.4405, allocations: 0.9428 MB / 0.5209 GB, free: 2.617 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006347/0.4412, allocations: 0.8645 MB / 0.5218 GB, free: 1.859 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4412, allocations: 0 / 0.5218 GB, free: 1.859 MB / 330.7 MB Notification: Performance of Templates: time 0.01491/0.4561, allocations: 8.473 MB / 0.53 GB, free: 11.7 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,subSample1.factor,super.factor,super.inferFactor,time