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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00222/0.002221, allocations: 97.69 kB / 16.02 MB, free: 5.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002411/0.002412, allocations: 189.4 kB / 16.95 MB, free: 5.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.1 MB / 222.8 MB, free: 4.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07804/0.07804, allocations: 12.6 MB / 282.8 MB, free: 8.762 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 76.55 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09954/0.1012, allocations: 49.41 MB / 392.4 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.003993/0.1052, allocations: 2.393 MB / 394.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.1069, allocations: 0.827 MB / 395.6 MB, free: 356 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.1072, allocations: 4 kB / 395.6 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003249/0.1075, allocations: 51.7 kB / 395.6 MB, free: 300 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.1077, allocations: 43.75 kB / 395.7 MB, free: 256 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004783/0.1082, allocations: 155.7 kB / 395.8 MB, free: 100 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.1086, allocations: 383.6 kB / 396.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.1088, allocations: 99.77 kB / 396.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.1091, allocations: 167.5 kB / 396.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.1093, allocations: 183.2 kB / 396.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.459e-05/0.1094, allocations: 32 kB / 396.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.624e-05/0.1094, allocations: 36 kB / 396.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.1095, allocations: 95.77 kB / 396.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.1097, allocations: 151.2 kB / 397 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003707/0.1101, allocations: 323.2 kB / 397.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1101, allocations: 4 kB / 397.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1101, allocations: 0 / 397.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1101, allocations: 0 / 397.3 MB, free: 14.66 MB / 302.1 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.001277/0.1114, allocations: 0.6239 MB / 397.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1114, allocations: 8.031 kB / 397.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.924e-05/0.1115, allocations: 36.56 kB / 398 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.1119, allocations: 276.9 kB / 398.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.1121, allocations: 138.3 kB / 398.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.403e-05/0.1122, allocations: 36.28 kB / 398.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.1134, allocations: 0.5622 MB / 399 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1134, allocations: 4 kB / 399 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.755e-05/0.1134, allocations: 12 kB / 399 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1134, allocations: 4 kB / 399 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.1148, allocations: 0.5112 MB / 399.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.1163, allocations: 1.017 MB / 400.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.1178, allocations: 0.5102 MB / 401 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005837/0.1184, allocations: 263.3 kB / 401.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.163e-05/0.1184, allocations: 4 kB / 401.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.1185, allocations: 42.56 kB / 401.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.304e-06/0.1185, allocations: 0 / 401.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03861/0.1571, allocations: 5.695 MB / 407 MB, free: 4.641 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.1573, allocations: 149.3 kB / 407.2 MB, free: 4.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.1577, allocations: 195.4 kB / 407.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.659e-05/0.1578, allocations: 41.7 kB / 407.4 MB, free: 4.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.1579, allocations: 149.5 kB / 407.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002628/0.1582, allocations: 193.2 kB / 407.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003256/0.1585, allocations: 106.7 kB / 407.8 MB, free: 3.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.1588, allocations: 346.8 kB / 408.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.1603, allocations: 0.6149 MB / 408.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.1619, allocations: 0.7925 MB / 409.6 MB, free: 1.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002984/0.1649, allocations: 1.255 MB / 410.8 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.283e-06/0.1649, allocations: 4 kB / 410.8 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003335/0.1683, allocations: 1.394 MB / 412.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.1683, allocations: 11.94 kB / 412.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.1684, allocations: 11.98 kB / 412.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.452e-05/0.1684, allocations: 8 kB / 412.3 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.1697, allocations: 211.7 kB / 412.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-05/0.1698, allocations: 8 kB / 412.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009952/0.1708, allocations: 107.7 kB / 412.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.591e-05/0.1709, allocations: 24 kB / 412.6 MB, free: 14.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004327/0.1713, allocations: 181.6 kB / 412.8 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003839/0.1717, allocations: 165.5 kB / 412.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001926/0.1719, allocations: 59.31 kB / 413 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.1719, allocations: 8 kB / 413 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/0.172, allocations: 0 / 413 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.172, allocations: 7.984 kB / 413 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00459/0.1766, allocations: 2.159 MB / 415.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.1766, allocations: 12.94 kB / 415.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007407/0.1774, allocations: 191.7 kB / 415.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-05/0.1774, allocations: 12 kB / 415.4 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.1774, allocations: 24 kB / 415.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.748e-05/0.1775, allocations: 15.94 kB / 415.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.367e-05/0.1775, allocations: 15.94 kB / 415.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003119/0.1806, allocations: 1.561 MB / 417 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002164/0.1809, allocations: 172.5 kB / 417.2 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.39e-05/0.1809, allocations: 27.98 kB / 417.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005506/0.1815, allocations: 75.92 kB / 417.3 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.1817, allocations: 99.72 kB / 417.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.907e-05/0.1818, allocations: 32 kB / 417.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001337/0.1819, allocations: 137.2 kB / 417.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1819, allocations: 0 / 417.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006802/0.1826, allocations: 124 kB / 417.7 MB, free: 9.395 MB / 318.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001957/0.1828, allocations: 138.9 kB / 417.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002964/0.1858, allocations: 1.15 MB / 418.9 MB, free: 8.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/0.1858, allocations: 1.375 kB / 418.9 MB, free: 8.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.1868, allocations: 345.8 kB / 419.3 MB, free: 7.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.1879, allocations: 136.2 kB / 419.4 MB, free: 7.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.1907, allocations: 1.322 MB / 420.7 MB, free: 6.137 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/0.1913, allocations: 0.8129 MB / 421.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007059/0.192, allocations: 99.3 kB / 421.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003061/0.1923, allocations: 39.44 kB / 421.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of SimCode: time 1.413e-06/0.1923, allocations: 0 / 421.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of Templates: time 0.1871/0.3794, allocations: 7.988 MB / 429.7 MB, free: 39.82 MB / 318.1 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