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.0009629/0.0009629, allocations: 96.7 kB / 15.74 MB, free: 424 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.001493/0.001493, allocations: 173.6 kB / 16.62 MB, free: 6.555 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.845/1.845, allocations: 205.4 MB / 222.8 MB, free: 5.641 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.09287/0.09287, allocations: 12.6 MB / 283.7 MB, free: 8.668 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.0006884/0.0006886, allocations: 19.94 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1026, allocations: 50.38 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.002449/0.105, allocations: 1.954 MB / 396.9 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1066, allocations: 0.8275 MB / 397.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.1069, allocations: 7.938 kB / 397.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.1072, allocations: 35.77 kB / 397.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.1074, allocations: 43.69 kB / 397.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006208/0.1081, allocations: 143.7 kB / 397.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004994/0.1086, allocations: 343.6 kB / 398.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.1088, allocations: 78.19 kB / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000343/0.1092, allocations: 139.5 kB / 398.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.1095, allocations: 147.4 kB / 398.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.1096, allocations: 12 kB / 398.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.054e-05/0.1097, allocations: 20 kB / 398.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-05/0.1098, allocations: 71.78 kB / 398.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.873e-05/0.1099, allocations: 69.52 kB / 398.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.1101, allocations: 227.7 kB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.1102, allocations: 4 kB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1102, allocations: 3.938 kB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.1102, allocations: 0 / 399 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.001123/0.1113, allocations: 0.5849 MB / 399.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1114, allocations: 8.031 kB / 399.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.375e-05/0.1115, allocations: 39.62 kB / 399.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.1118, allocations: 271.7 kB / 399.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.112, allocations: 145.7 kB / 400 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.988e-05/0.1121, allocations: 32 kB / 400.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.1133, allocations: 0.5814 MB / 400.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.1133, allocations: 4 kB / 400.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.1133, allocations: 11.98 kB / 400.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.1134, allocations: 8 kB / 400.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.1147, allocations: 0.5346 MB / 401.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1163, allocations: 1.022 MB / 402.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.1177, allocations: 0.5224 MB / 402.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000557/0.1183, allocations: 263.7 kB / 403 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.361e-05/0.1183, allocations: 20.31 kB / 403 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1184, allocations: 38.75 kB / 403.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.874e-06/0.1184, allocations: 0 / 403.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03401/0.1524, allocations: 6.733 MB / 409.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.1525, allocations: 149.6 kB / 410 MB, free: 3.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.1527, allocations: 199.4 kB / 410.1 MB, free: 3.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.359e-05/0.1528, allocations: 37.7 kB / 410.2 MB, free: 3.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.431e-05/0.1529, allocations: 149.5 kB / 410.3 MB, free: 2.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.1531, allocations: 193.2 kB / 410.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.1532, allocations: 12 kB / 410.5 MB, free: 2.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1533, allocations: 346.8 kB / 410.9 MB, free: 2.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.1548, allocations: 0.65 MB / 411.5 MB, free: 1.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.1564, allocations: 0.8354 MB / 412.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.1578, allocations: 0.6059 MB / 413 MB, free: 284 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1578, allocations: 0 / 413 MB, free: 284 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003274/0.1611, allocations: 1.464 MB / 414.4 MB, free: 14.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1611, allocations: 11.95 kB / 414.4 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.1611, allocations: 8 kB / 414.4 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.1612, allocations: 8 kB / 414.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.1624, allocations: 235.7 kB / 414.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.1625, allocations: 11.98 kB / 414.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008691/0.1634, allocations: 127.7 kB / 414.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/0.1634, allocations: 24 kB / 414.8 MB, free: 14.39 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.0002887/0.1637, allocations: 185.4 kB / 415 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000293/0.164, allocations: 149.1 kB / 415.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000179/0.1642, allocations: 71.25 kB / 415.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.1642, allocations: 8 kB / 415.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1643, allocations: 0 / 415.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.1643, allocations: 7.984 kB / 415.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004509/0.1688, allocations: 2.285 MB / 417.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.02e-05/0.1688, allocations: 12 kB / 417.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007714/0.1696, allocations: 203.7 kB / 417.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.362e-05/0.1696, allocations: 20 kB / 417.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.163e-05/0.1697, allocations: 31.95 kB / 417.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.581e-05/0.1697, allocations: 23.92 kB / 417.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/0.1698, allocations: 15.94 kB / 417.8 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003199/0.173, allocations: 1.654 MB / 419.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002405/0.1732, allocations: 164.6 kB / 419.7 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.024e-05/0.1733, allocations: 27.98 kB / 419.7 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006025/0.1739, allocations: 99.94 kB / 419.8 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.1741, allocations: 99.7 kB / 419.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.1742, allocations: 31.95 kB / 419.9 MB, free: 8.949 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.1743, allocations: 141.2 kB / 420 MB, free: 8.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1744, allocations: 0 / 420 MB, free: 8.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007119/0.1751, allocations: 128 kB / 420.2 MB, free: 8.688 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.0001644/0.1752, allocations: 134.9 kB / 420.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.178, allocations: 1.178 MB / 421.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.178, allocations: 4 kB / 421.5 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.179, allocations: 383.2 kB / 421.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009801/0.18, allocations: 140.2 kB / 422 MB, free: 6.859 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.1829, allocations: 1.338 MB / 423.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.1834, allocations: 0.809 MB / 424.1 MB, free: 4.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006523/0.1841, allocations: 99.36 kB / 424.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002908/0.1844, allocations: 39.44 kB / 424.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1844, allocations: 0 / 424.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of Templates: time 0.2029/0.3873, allocations: 7.283 MB / 431.6 MB, free: 39.14 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