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.001283/0.001283, allocations: 95.89 kB / 15.73 MB, free: 440 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.001631/0.001631, allocations: 178.7 kB / 16.61 MB, free: 6.891 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.633/1.633, allocations: 205.4 MB / 222.8 MB, free: 5.656 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.082/0.082, allocations: 12.6 MB / 283.6 MB, free: 8.703 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.0008266/0.0008268, allocations: 16 kB / 344.5 MB, free: 21.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09872/0.09956, allocations: 50.39 MB / 394.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.002805/0.1024, allocations: 1.932 MB / 396.8 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1041, allocations: 0.812 MB / 397.6 MB, free: 48 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.1043, allocations: 7.938 kB / 397.6 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002753/0.1046, allocations: 35.77 kB / 397.7 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.1048, allocations: 55.81 kB / 397.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005788/0.1054, allocations: 143.6 kB / 397.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.1058, allocations: 228 kB / 398.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.1061, allocations: 74.25 kB / 398.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.1064, allocations: 131.6 kB / 398.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.1067, allocations: 147.4 kB / 398.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.992e-05/0.1067, allocations: 16 kB / 398.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.64e-05/0.1068, allocations: 16 kB / 398.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1069, allocations: 79.7 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.107, allocations: 65.58 kB / 398.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.1073, allocations: 227.7 kB / 398.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1073, allocations: 0 / 398.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.1073, allocations: 0 / 398.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1073, allocations: 4 kB / 398.8 MB, free: 14.83 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.001469/0.1088, allocations: 0.5848 MB / 399.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.1089, allocations: 8.031 kB / 399.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.729e-05/0.109, allocations: 39.62 kB / 399.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.1094, allocations: 287.6 kB / 399.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.1097, allocations: 141.7 kB / 399.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-05/0.1098, allocations: 28 kB / 399.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.111, allocations: 0.5775 MB / 400.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.111, allocations: 3.984 kB / 400.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.1111, allocations: 16 kB / 400.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1111, allocations: 4 kB / 400.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.1125, allocations: 0.5346 MB / 401 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.1142, allocations: 1.026 MB / 402.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.1159, allocations: 0.5185 MB / 402.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.666e-05/0.1159, allocations: 4.188 kB / 402.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.116, allocations: 38.75 kB / 402.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.244e-06/0.116, allocations: 3.938 kB / 402.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03845/0.1544, allocations: 6.741 MB / 409.4 MB, free: 4.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.1546, allocations: 148.9 kB / 409.5 MB, free: 3.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.1548, allocations: 195.4 kB / 409.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.351e-05/0.1549, allocations: 41.64 kB / 409.8 MB, free: 3.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.045e-05/0.155, allocations: 141.5 kB / 409.9 MB, free: 3.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.1552, allocations: 197.3 kB / 410.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/0.1553, allocations: 16 kB / 410.1 MB, free: 3.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1554, allocations: 342.8 kB / 410.4 MB, free: 2.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/0.157, allocations: 0.6539 MB / 411.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.1587, allocations: 0.8198 MB / 411.9 MB, free: 1.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/0.1602, allocations: 0.6061 MB / 412.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1602, allocations: 0 / 412.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003565/0.1638, allocations: 1.472 MB / 414 MB, free: 15.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.1639, allocations: 8.031 kB / 414 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.1639, allocations: 11.95 kB / 414 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.1639, allocations: 11.94 kB / 414 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.1653, allocations: 235.6 kB / 414.2 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.1654, allocations: 11.98 kB / 414.3 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000992/0.1664, allocations: 119.7 kB / 414.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.699e-05/0.1665, allocations: 31.98 kB / 414.4 MB, free: 14.84 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.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 initialization (83): * Single equations (assignments): 83 * 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.0003871/0.1669, allocations: 177.4 kB / 414.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003369/0.1672, allocations: 157.1 kB / 414.7 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001796/0.1674, allocations: 63.3 kB / 414.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.1674, allocations: 11.95 kB / 414.8 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.1674, allocations: 4.469 kB / 414.8 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.1675, allocations: 7.984 kB / 414.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004936/0.1724, allocations: 2.289 MB / 417.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.1724, allocations: 8 kB / 417.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/0.1732, allocations: 200 kB / 417.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.508e-05/0.1733, allocations: 16 kB / 417.3 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.084e-05/0.1733, allocations: 31.98 kB / 417.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.387e-05/0.1734, allocations: 23.89 kB / 417.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.355e-05/0.1734, allocations: 11.94 kB / 417.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003913/0.1773, allocations: 2.173 MB / 419.6 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.1775, allocations: 160.6 kB / 419.7 MB, free: 8.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.755e-05/0.1776, allocations: 36.05 kB / 419.8 MB, free: 8.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005782/0.1782, allocations: 91.92 kB / 419.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.1784, allocations: 107.6 kB / 420 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.1785, allocations: 32 kB / 420 MB, free: 8.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.1786, allocations: 137.2 kB / 420.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1786, allocations: 0 / 420.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007056/0.1793, allocations: 120 kB / 420.2 MB, free: 8.371 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 (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.0001956/0.1795, allocations: 134.9 kB / 420.4 MB, free: 8.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002876/0.1824, allocations: 1.191 MB / 421.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1824, allocations: 0 / 421.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.1835, allocations: 378.2 kB / 421.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006818/0.1842, allocations: 132.3 kB / 422.1 MB, free: 6.547 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.1867, allocations: 1.351 MB / 423.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.1871, allocations: 0.8168 MB / 424.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005605/0.1877, allocations: 95.38 kB / 424.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.1879, allocations: 39.38 kB / 424.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1879, allocations: 4 kB / 424.4 MB, free: 4.047 MB / 318.1 MB Notification: Performance of Templates: time 0.189/0.377, allocations: 7.248 MB / 431.6 MB, free: 39.33 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