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.0008437/0.0008437, allocations: 102 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008803/0.0008803, allocations: 181.9 kB / 16.96 MB, free: 6.879 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.179/1.179, allocations: 205.4 MB / 223.1 MB, free: 5.535 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.06318/0.06318, allocations: 12.6 MB / 284 MB, free: 8.574 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.0006375/0.0006377, allocations: 20 kB / 345.2 MB, free: 20.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07472/0.07537, allocations: 50.38 MB / 395.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.002362/0.07776, allocations: 2.031 MB / 397.6 MB, free: 392 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.07919, allocations: 0.8232 MB / 398.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.07936, allocations: 7.938 kB / 398.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002248/0.07959, allocations: 43.75 kB / 398.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001754/0.07978, allocations: 43.69 kB / 398.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.08025, allocations: 151.8 kB / 398.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003626/0.08063, allocations: 371.5 kB / 399 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.0808, allocations: 83.84 kB / 399.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.08102, allocations: 135.5 kB / 399.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.08123, allocations: 155.3 kB / 399.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.136e-05/0.08128, allocations: 16 kB / 399.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.849e-05/0.08133, allocations: 16 kB / 399.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.65e-05/0.08142, allocations: 79.7 kB / 399.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.08156, allocations: 157 kB / 399.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.08182, allocations: 303.1 kB / 399.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.08183, allocations: 0 / 399.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.08185, allocations: 0 / 399.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.08186, allocations: 3.938 kB / 399.9 MB, free: 14.01 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.001018/0.08288, allocations: 0.585 MB / 400.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.08292, allocations: 8.031 kB / 400.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/0.083, allocations: 36.56 kB / 400.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.0833, allocations: 277 kB / 400.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001909/0.0835, allocations: 142.3 kB / 401 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.08357, allocations: 32.28 kB / 401 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.08471, allocations: 0.5856 MB / 401.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.08474, allocations: 4 kB / 401.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.08478, allocations: 12 kB / 401.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.08479, allocations: 8 kB / 401.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.08612, allocations: 0.523 MB / 402.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.08749, allocations: 1.045 MB / 403.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.08902, allocations: 0.5141 MB / 403.7 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006057/0.08964, allocations: 271.4 kB / 404 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.08968, allocations: 7.984 kB / 404 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.08971, allocations: 42.5 kB / 404 MB, free: 9.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.453e-06/0.08972, allocations: 3.938 kB / 404 MB, free: 9.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03935/0.1291, allocations: 6.747 MB / 410.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.411e-05/0.1292, allocations: 145 kB / 410.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.1294, allocations: 199.4 kB / 411.1 MB, free: 2.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.532e-05/0.1295, allocations: 33.7 kB / 411.1 MB, free: 2.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.091e-05/0.1296, allocations: 145.5 kB / 411.3 MB, free: 2.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.1297, allocations: 197.3 kB / 411.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.1299, allocations: 61.69 kB / 411.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.13, allocations: 338.8 kB / 411.8 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/0.1316, allocations: 0.65 MB / 412.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.1333, allocations: 0.8393 MB / 413.3 MB, free: 172 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003044/0.1363, allocations: 1.322 MB / 414.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1363, allocations: 0 / 414.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003503/0.1399, allocations: 1.48 MB / 416.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1399, allocations: 13.28 kB / 416.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1399, allocations: 4.078 kB / 416.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1399, allocations: 12 kB / 416.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.1412, allocations: 223.7 kB / 416.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.288e-05/0.1412, allocations: 15.92 kB / 416.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009485/0.1422, allocations: 131.7 kB / 416.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.341e-05/0.1423, allocations: 24 kB / 416.6 MB, free: 12.87 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.0002692/0.1426, allocations: 181.8 kB / 416.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002835/0.1428, allocations: 165.1 kB / 416.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.143, allocations: 67.28 kB / 417 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.143, allocations: 8 kB / 417 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1431, allocations: 4.469 kB / 417 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1431, allocations: 3.984 kB / 417 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004655/0.1477, allocations: 2.289 MB / 419.3 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.1478, allocations: 11.98 kB / 419.3 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007414/0.1485, allocations: 208 kB / 419.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.349e-05/0.1485, allocations: 16 kB / 419.5 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.681e-05/0.1486, allocations: 24 kB / 419.5 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.364e-05/0.1486, allocations: 19.92 kB / 419.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/0.1486, allocations: 15.94 kB / 419.5 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/0.1518, allocations: 1.666 MB / 421.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.152, allocations: 164.5 kB / 421.4 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.1521, allocations: 27.98 kB / 421.4 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/0.1527, allocations: 99.98 kB / 421.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.1529, allocations: 91.66 kB / 421.6 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.1529, allocations: 36 kB / 421.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001124/0.153, allocations: 137.2 kB / 421.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.153, allocations: 0 / 421.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005909/0.1536, allocations: 128 kB / 421.9 MB, free: 7.168 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.0001395/0.1538, allocations: 134.9 kB / 422 MB, free: 7.027 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002745/0.1565, allocations: 1.191 MB / 423.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1565, allocations: 4.188 kB / 423.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.1575, allocations: 377.8 kB / 423.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009396/0.1585, allocations: 144.2 kB / 423.7 MB, free: 5.316 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.1607, allocations: 1.37 MB / 425.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.1611, allocations: 0.8129 MB / 425.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005298/0.1616, allocations: 99.3 kB / 426 MB, free: 2.844 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.1619, allocations: 43.38 kB / 426 MB, free: 2.801 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1619, allocations: 0 / 426 MB, free: 2.801 MB / 318.1 MB Notification: Performance of Templates: time 0.14/0.302, allocations: 7.5 MB / 433.5 MB, free: 38.05 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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