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.008491/0.008491, allocations: 88.75 kB / 15.91 MB, free: 6.301 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.001717/0.001718, allocations: 197.7 kB / 16.83 MB, free: 6.234 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.499/1.499, allocations: 205.1 MB / 222.7 MB, free: 4.68 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.07437/0.07437, allocations: 12.59 MB / 282.6 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.001956/0.001956, allocations: 79.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1142, allocations: 49.39 MB / 392.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.004333/0.1186, allocations: 2.393 MB / 394.6 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.1203, allocations: 0.8309 MB / 395.4 MB, free: 476 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.1205, allocations: 7.938 kB / 395.4 MB, free: 468 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003255/0.1209, allocations: 43.7 kB / 395.4 MB, free: 424 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001844/0.1211, allocations: 43.69 kB / 395.5 MB, free: 380 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005172/0.1216, allocations: 159.8 kB / 395.6 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.122, allocations: 363.5 kB / 396 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.1222, allocations: 87.83 kB / 396.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.1224, allocations: 147.5 kB / 396.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.1226, allocations: 171.2 kB / 396.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.176e-05/0.1227, allocations: 20 kB / 396.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.718e-05/0.1228, allocations: 24 kB / 396.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.1229, allocations: 83.78 kB / 396.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.123, allocations: 139.2 kB / 396.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003162/0.1233, allocations: 311 kB / 397 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.1234, allocations: 4 kB / 397 MB, free: 14.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1234, allocations: 0 / 397 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1234, allocations: 0 / 397 MB, free: 14.89 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.001315/0.1247, allocations: 0.6239 MB / 397.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.1248, allocations: 8.031 kB / 397.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.452e-05/0.1248, allocations: 36.56 kB / 397.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000346/0.1252, allocations: 269.1 kB / 397.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.1254, allocations: 150.2 kB / 398 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.87e-05/0.1255, allocations: 32.28 kB / 398.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.1267, allocations: 0.5661 MB / 398.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.1267, allocations: 0 / 398.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.1267, allocations: 12 kB / 398.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1268, allocations: 4 kB / 398.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.1281, allocations: 0.5113 MB / 399.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.1297, allocations: 1.021 MB / 400.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.1312, allocations: 0.5024 MB / 400.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005752/0.1318, allocations: 275.4 kB / 401 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.082e-05/0.1319, allocations: 4 kB / 401 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.1319, allocations: 42.5 kB / 401 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.913e-06/0.1319, allocations: 0 / 401 MB, free: 10.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.0496/0.1815, allocations: 5.694 MB / 406.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.1817, allocations: 157 kB / 406.9 MB, free: 4.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003241/0.1821, allocations: 199.4 kB / 407 MB, free: 4.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.1822, allocations: 37.7 kB / 407.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.1823, allocations: 141.5 kB / 407.2 MB, free: 4.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002876/0.1826, allocations: 193.3 kB / 407.4 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004384/0.1831, allocations: 106.7 kB / 407.5 MB, free: 3.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.1833, allocations: 346.8 kB / 407.9 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002333/0.1856, allocations: 0.611 MB / 408.5 MB, free: 3.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002462/0.1881, allocations: 0.8041 MB / 409.3 MB, free: 2.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00424/0.1923, allocations: 1.247 MB / 410.5 MB, free: 0.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.1924, allocations: 4 kB / 410.5 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004217/0.1966, allocations: 1.394 MB / 411.9 MB, free: 15.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.1967, allocations: 16.02 kB / 411.9 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.803e-05/0.1967, allocations: 8 kB / 411.9 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.718e-05/0.1968, allocations: 11.94 kB / 411.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.1982, allocations: 203.7 kB / 412.1 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/0.1983, allocations: 11.94 kB / 412.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009985/0.1993, allocations: 111.7 kB / 412.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-05/0.1994, allocations: 24 kB / 412.3 MB, free: 15.04 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.0003934/0.1998, allocations: 185.6 kB / 412.5 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004015/0.2002, allocations: 153.2 kB / 412.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002201/0.2004, allocations: 55.31 kB / 412.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.2004, allocations: 8 kB / 412.7 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/0.2005, allocations: 4.219 kB / 412.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.2005, allocations: 4 kB / 412.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005/0.2055, allocations: 2.175 MB / 414.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.574e-05/0.2055, allocations: 12 kB / 414.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007767/0.2063, allocations: 183.7 kB / 415.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-05/0.2064, allocations: 12 kB / 415.1 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.469e-05/0.2064, allocations: 24.56 kB / 415.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.517e-05/0.2065, allocations: 19.94 kB / 415.1 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.287e-05/0.2065, allocations: 19.88 kB / 415.1 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003158/0.2097, allocations: 1.553 MB / 416.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.2099, allocations: 164.5 kB / 416.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.499e-05/0.21, allocations: 36.05 kB / 416.9 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005874/0.2106, allocations: 79.91 kB / 417 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.2108, allocations: 91.59 kB / 417.1 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.903e-05/0.2109, allocations: 36 kB / 417.1 MB, free: 9.879 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001436/0.2111, allocations: 137.2 kB / 417.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2111, allocations: 0 / 417.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009728/0.212, allocations: 128 kB / 417.3 MB, free: 9.621 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.0002428/0.2123, allocations: 130.9 kB / 417.5 MB, free: 9.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.215, allocations: 1.124 MB / 418.6 MB, free: 8.352 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.215, allocations: 0 / 418.6 MB, free: 8.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009179/0.2159, allocations: 338.5 kB / 418.9 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008857/0.2168, allocations: 145.8 kB / 419.1 MB, free: 7.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.2192, allocations: 1.32 MB / 420.4 MB, free: 6.402 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003904/0.2196, allocations: 0.8129 MB / 421.2 MB, free: 5.562 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006058/0.2202, allocations: 91.38 kB / 421.3 MB, free: 5.473 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003201/0.2206, allocations: 35.44 kB / 421.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2206, allocations: 0 / 421.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of Templates: time 0.1969/0.4174, allocations: 7.599 MB / 428.9 MB, free: 39.53 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