Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 111.6 kB / 17.06 MB, free: 6 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.001089/0.00109, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009723/0.0009723, allocations: 43.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3023, allocations: 49.43 MB / 400.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00359/0.3059, allocations: 2.36 MB / 403.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.3074, allocations: 0.7949 MB / 403.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.3076, allocations: 7.938 kB / 403.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003241/0.3079, allocations: 51.56 kB / 403.9 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.3082, allocations: 67.56 kB / 404 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.3086, allocations: 171.6 kB / 404.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003684/0.309, allocations: 383.5 kB / 404.5 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.3092, allocations: 103.8 kB / 404.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.3095, allocations: 155.5 kB / 404.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.3097, allocations: 191.2 kB / 405 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.935e-05/0.3097, allocations: 32 kB / 405 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.459e-05/0.3098, allocations: 36 kB / 405 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.3099, allocations: 91.78 kB / 405.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.31, allocations: 147.2 kB / 405.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003409/0.3104, allocations: 331.9 kB / 405.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3104, allocations: 0 / 405.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3104, allocations: 0 / 405.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.3104, allocations: 0 / 405.6 MB, free: 3.957 MB / 318.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.001134/0.3116, allocations: 0.62 MB / 406.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3116, allocations: 15.89 kB / 406.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.856e-05/0.3117, allocations: 40.56 kB / 406.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.3121, allocations: 280.3 kB / 406.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.3123, allocations: 138.3 kB / 406.7 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/0.3123, allocations: 28.38 kB / 406.7 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.3134, allocations: 0.5699 MB / 407.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.3134, allocations: 4 kB / 407.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.3135, allocations: 19.98 kB / 407.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.3135, allocations: 4 kB / 407.3 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.3147, allocations: 0.5074 MB / 407.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.3161, allocations: 1.002 MB / 408.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.3175, allocations: 0.4985 MB / 409.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005266/0.3181, allocations: 269 kB / 409.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.3181, allocations: 4 kB / 409.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.3182, allocations: 42.56 kB / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.794e-06/0.3182, allocations: 0 / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03451/0.3527, allocations: 5.735 MB / 415.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.3528, allocations: 145 kB / 415.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.353, allocations: 200.2 kB / 415.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.984e-05/0.3531, allocations: 37.7 kB / 415.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.34e-05/0.3532, allocations: 141.5 kB / 415.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.3533, allocations: 193.3 kB / 416.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/0.3536, allocations: 110.7 kB / 416.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3538, allocations: 346.8 kB / 416.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.3551, allocations: 0.6187 MB / 417.1 MB, free: 8.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.3566, allocations: 0.7964 MB / 417.9 MB, free: 7.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002581/0.3592, allocations: 1.247 MB / 419.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.383e-06/0.3592, allocations: 7.938 kB / 419.2 MB, free: 5.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00302/0.3622, allocations: 1.394 MB / 420.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3623, allocations: 8.031 kB / 420.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.3623, allocations: 8 kB / 420.6 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.3623, allocations: 8 kB / 420.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.3635, allocations: 211.6 kB / 420.8 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.84e-05/0.3636, allocations: 15.98 kB / 420.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008301/0.3644, allocations: 99.73 kB / 420.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.294e-05/0.3645, allocations: 31.98 kB / 420.9 MB, free: 4.09 MB / 334.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.0002897/0.3648, allocations: 177.6 kB / 421.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000277/0.3651, allocations: 153.4 kB / 421.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.3652, allocations: 63.3 kB / 421.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3653, allocations: 11.98 kB / 421.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.3653, allocations: 4 kB / 421.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3653, allocations: 7.984 kB / 421.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004203/0.3695, allocations: 2.164 MB / 423.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/0.3695, allocations: 16.08 kB / 423.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006837/0.3702, allocations: 183.6 kB / 423.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.488e-05/0.3702, allocations: 12 kB / 423.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.884e-05/0.3703, allocations: 24 kB / 423.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-05/0.3703, allocations: 24.23 kB / 423.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/0.3703, allocations: 16.33 kB / 423.8 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.373, allocations: 1.553 MB / 425.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.3732, allocations: 160.6 kB / 425.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.333e-05/0.3733, allocations: 36.05 kB / 425.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.3738, allocations: 71.92 kB / 425.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.374, allocations: 95.66 kB / 425.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.793e-05/0.3741, allocations: 32 kB / 425.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001124/0.3742, allocations: 136.1 kB / 425.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3742, allocations: 4 kB / 425.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006519/0.3749, allocations: 120 kB / 426 MB, free: 14.68 MB / 350.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.0001486/0.375, allocations: 146.9 kB / 426.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.3774, allocations: 1.135 MB / 427.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.3775, allocations: 0 / 427.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008814/0.3783, allocations: 342.5 kB / 427.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008796/0.3792, allocations: 135.2 kB / 427.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.3814, allocations: 1.19 MB / 428.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.3818, allocations: 0.809 MB / 429.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004205/0.3822, allocations: 91.33 kB / 429.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002646/0.3825, allocations: 47.42 kB / 429.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3825, allocations: 0 / 429.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Templates: time 0.01294/0.3954, allocations: 8.304 MB / 438.2 MB, free: 2.32 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches