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.001138/0.001138, allocations: 110.3 kB / 17.06 MB, free: 6.137 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.00112/0.00112, allocations: 191 kB / 18 MB, free: 5.219 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.505/1.505, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 39.94 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3396, allocations: 49.45 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004087/0.3438, allocations: 2.341 MB / 403.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.3458, allocations: 0.8026 MB / 403.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003205/0.3462, allocations: 7.938 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004176/0.3467, allocations: 51.58 kB / 403.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002671/0.3469, allocations: 59.55 kB / 404 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007065/0.3477, allocations: 177.5 kB / 404.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004883/0.3482, allocations: 379.6 kB / 404.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.3484, allocations: 115.7 kB / 404.6 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000282/0.3487, allocations: 155.5 kB / 404.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002726/0.349, allocations: 183.2 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.247e-05/0.3491, allocations: 32 kB / 405 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.951e-05/0.3492, allocations: 36 kB / 405 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.3493, allocations: 91.72 kB / 405.1 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.3494, allocations: 151.2 kB / 405.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.3499, allocations: 332 kB / 405.6 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3499, allocations: 0 / 405.6 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3499, allocations: 0 / 405.6 MB, free: 3.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.3499, allocations: 4 kB / 405.6 MB, free: 3.977 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.001218/0.3511, allocations: 0.6201 MB / 406.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3512, allocations: 11.97 kB / 406.2 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.276e-05/0.3513, allocations: 40.56 kB / 406.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/0.3518, allocations: 280.3 kB / 406.5 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.352, allocations: 134.3 kB / 406.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.042e-05/0.3521, allocations: 24.38 kB / 406.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.3533, allocations: 0.5777 MB / 407.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.381e-05/0.3533, allocations: 4 kB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.3534, allocations: 8 kB / 407.3 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.3534, allocations: 8 kB / 407.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.3547, allocations: 0.5074 MB / 407.8 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.3562, allocations: 0.9983 MB / 408.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.3578, allocations: 0.5101 MB / 409.3 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006242/0.3584, allocations: 263.3 kB / 409.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.3585, allocations: 8.156 kB / 409.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.3585, allocations: 38.56 kB / 409.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.986e-06/0.3585, allocations: 0 / 409.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03708/0.3956, allocations: 5.74 MB / 415.4 MB, free: 9.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.3958, allocations: 145 kB / 415.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.3961, allocations: 200.2 kB / 415.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.726e-05/0.3962, allocations: 37.7 kB / 415.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3963, allocations: 145.5 kB / 415.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.3965, allocations: 193.3 kB / 416.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.3968, allocations: 110.7 kB / 416.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.397, allocations: 346.8 kB / 416.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001493/0.3985, allocations: 0.6187 MB / 417.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.4002, allocations: 0.7964 MB / 417.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002831/0.4031, allocations: 1.247 MB / 419.2 MB, free: 5.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/0.4031, allocations: 4 kB / 419.2 MB, free: 5.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003573/0.4067, allocations: 1.39 MB / 420.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/0.4067, allocations: 8 kB / 420.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.4068, allocations: 8 kB / 420.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.4068, allocations: 8 kB / 420.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.4081, allocations: 211.6 kB / 420.8 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.608e-05/0.4082, allocations: 16.02 kB / 420.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009395/0.4091, allocations: 99.73 kB / 420.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.339e-05/0.4092, allocations: 31.98 kB / 420.9 MB, free: 4.121 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.0003365/0.4096, allocations: 177.6 kB / 421.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003357/0.4099, allocations: 157.5 kB / 421.3 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.4101, allocations: 67.39 kB / 421.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4101, allocations: 11.94 kB / 421.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.4101, allocations: 0 / 421.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.4101, allocations: 7.984 kB / 421.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004811/0.415, allocations: 2.167 MB / 423.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/0.415, allocations: 8 kB / 423.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007635/0.4158, allocations: 180.4 kB / 423.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.917e-05/0.4158, allocations: 20 kB / 423.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.809e-05/0.4159, allocations: 27.98 kB / 423.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-05/0.4159, allocations: 15.94 kB / 423.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.204e-05/0.416, allocations: 15.94 kB / 423.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.4191, allocations: 1.557 MB / 425.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/0.4194, allocations: 160.6 kB / 425.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.4195, allocations: 31.98 kB / 425.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006089/0.4201, allocations: 71.92 kB / 425.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002303/0.4203, allocations: 95.72 kB / 425.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.894e-05/0.4204, allocations: 36 kB / 425.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001758/0.4206, allocations: 140.1 kB / 425.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4206, allocations: 0 / 425.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007852/0.4214, allocations: 124 kB / 426 MB, free: 14.71 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.0002016/0.4216, allocations: 138.9 kB / 426.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002824/0.4244, allocations: 1.139 MB / 427.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.4245, allocations: 0 / 427.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009651/0.4254, allocations: 343.5 kB / 427.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.4265, allocations: 140.8 kB / 427.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.429, allocations: 1.17 MB / 428.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.4295, allocations: 0.8168 MB / 429.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004799/0.43, allocations: 91.33 kB / 429.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.4303, allocations: 43.42 kB / 429.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4303, allocations: 0 / 429.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of Templates: time 0.01632/0.4467, allocations: 8.305 MB / 438.1 MB, free: 2.359 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