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.001591/0.001591, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001819/0.001818, allocations: 192 kB / 18 MB, free: 5.102 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.496/1.496, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.92 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3338, allocations: 49.43 MB / 400.7 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00356/0.3374, allocations: 2.353 MB / 403.1 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3389, allocations: 0.8026 MB / 403.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.3391, allocations: 7.938 kB / 403.9 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003011/0.3394, allocations: 51.56 kB / 403.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.3396, allocations: 59.56 kB / 404 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004751/0.3401, allocations: 186.3 kB / 404.2 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.3404, allocations: 383.6 kB / 404.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.3407, allocations: 95.83 kB / 404.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.3409, allocations: 167.4 kB / 404.8 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/0.3411, allocations: 175.3 kB / 405 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.359e-05/0.3412, allocations: 36 kB / 405 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.033e-05/0.3413, allocations: 36 kB / 405 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.3414, allocations: 95.7 kB / 405.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.3415, allocations: 147.2 kB / 405.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.3419, allocations: 338.6 kB / 405.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.3419, allocations: 3.984 kB / 405.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3419, allocations: 0 / 405.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.3419, allocations: 0 / 405.6 MB, free: 4.125 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.001263/0.3432, allocations: 0.6236 MB / 406.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.3432, allocations: 11.89 kB / 406.2 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.991e-05/0.3433, allocations: 40.75 kB / 406.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.3438, allocations: 288.3 kB / 406.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.344, allocations: 142.3 kB / 406.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/0.344, allocations: 24.38 kB / 406.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3452, allocations: 0.5583 MB / 407.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.3452, allocations: 7.953 kB / 407.3 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3453, allocations: 12 kB / 407.3 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.3453, allocations: 8 kB / 407.3 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.3466, allocations: 0.5151 MB / 407.8 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.3482, allocations: 0.9909 MB / 408.8 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.3498, allocations: 0.5079 MB / 409.3 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006886/0.3505, allocations: 267.5 kB / 409.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.52e-05/0.3505, allocations: 8 kB / 409.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.3506, allocations: 34.56 kB / 409.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.964e-06/0.3506, allocations: 0 / 409.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03553/0.3861, allocations: 5.738 MB / 415.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.3863, allocations: 153 kB / 415.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.3865, allocations: 196.2 kB / 415.7 MB, free: 9.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.91e-05/0.3866, allocations: 41.7 kB / 415.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.277e-05/0.3867, allocations: 145.7 kB / 415.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.3869, allocations: 202.3 kB / 416.1 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002838/0.3872, allocations: 106.7 kB / 416.2 MB, free: 9.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3873, allocations: 342.8 kB / 416.5 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.3888, allocations: 0.6149 MB / 417.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.3905, allocations: 0.8042 MB / 417.9 MB, free: 7.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002868/0.3933, allocations: 1.248 MB / 419.2 MB, free: 6.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3933, allocations: 4.375 kB / 419.2 MB, free: 6.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003424/0.3968, allocations: 1.394 MB / 420.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.3968, allocations: 16.02 kB / 420.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.3968, allocations: 8 kB / 420.6 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.012e-05/0.3969, allocations: 11.94 kB / 420.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.3982, allocations: 211.6 kB / 420.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.531e-05/0.3982, allocations: 8 kB / 420.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009566/0.3992, allocations: 111.8 kB / 420.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.925e-05/0.3993, allocations: 27.94 kB / 421 MB, free: 4.242 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.0003445/0.3996, allocations: 177.6 kB / 421.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003505/0.4, allocations: 165.3 kB / 421.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002002/0.4002, allocations: 55.31 kB / 421.4 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.4002, allocations: 8 kB / 421.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4002, allocations: 3.938 kB / 421.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.4003, allocations: 7.984 kB / 421.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004821/0.4051, allocations: 2.172 MB / 423.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.298e-05/0.4051, allocations: 8 kB / 423.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007608/0.4059, allocations: 187.7 kB / 423.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/0.4059, allocations: 16 kB / 423.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-05/0.406, allocations: 24 kB / 423.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.682e-05/0.406, allocations: 15.94 kB / 423.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/0.406, allocations: 20.19 kB / 423.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.4092, allocations: 1.557 MB / 425.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.4094, allocations: 160.8 kB / 425.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.019e-05/0.4095, allocations: 27.98 kB / 425.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000611/0.4102, allocations: 83.97 kB / 425.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4104, allocations: 91.67 kB / 425.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.4105, allocations: 32 kB / 425.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.4106, allocations: 140.1 kB / 425.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4106, allocations: 0 / 425.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006843/0.4113, allocations: 120.2 kB / 426 MB, free: 14.83 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.0001758/0.4115, allocations: 146.9 kB / 426.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002835/0.4143, allocations: 1.148 MB / 427.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.4143, allocations: 0 / 427.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.4154, allocations: 334.5 kB / 427.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009054/0.4163, allocations: 140 kB / 427.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.4187, allocations: 1.177 MB / 428.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.4191, allocations: 0.8168 MB / 429.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005139/0.4196, allocations: 95.31 kB / 429.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.42, allocations: 39.44 kB / 429.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.42, allocations: 0 / 429.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Templates: time 0.01357/0.4335, allocations: 8.309 MB / 438.2 MB, free: 2.457 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