Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,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.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,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.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 113.9 kB / 17.07 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.001273/0.001273, allocations: 190.9 kB / 18 MB, free: 5.082 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 51.92 kB / 351.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.334, allocations: 49.44 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004434/0.3385, allocations: 2.131 MB / 402.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.3401, allocations: 0.651 MB / 403.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.3403, allocations: 7.938 kB / 403.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003917/0.3408, allocations: 43.7 kB / 403.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002263/0.341, allocations: 59.56 kB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005426/0.3416, allocations: 123.8 kB / 403.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000517/0.3421, allocations: 347.1 kB / 404.1 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.3424, allocations: 68.36 kB / 404.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002811/0.3426, allocations: 139.6 kB / 404.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003214/0.343, allocations: 155.4 kB / 404.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.513e-05/0.3431, allocations: 32 kB / 404.4 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.586e-05/0.3431, allocations: 31.94 kB / 404.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.3433, allocations: 83.8 kB / 404.6 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.3435, allocations: 127.4 kB / 404.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004387/0.3439, allocations: 284.2 kB / 405 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3439, allocations: 3.938 kB / 405 MB, free: 4.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.344, allocations: 0 / 405 MB, free: 4.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.344, allocations: 0 / 405 MB, free: 4.625 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001413/0.3454, allocations: 0.5729 MB / 405.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.3454, allocations: 15.89 kB / 405.6 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.062e-05/0.3455, allocations: 28.66 kB / 405.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.346, allocations: 249.9 kB / 405.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.3463, allocations: 138.2 kB / 406 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-05/0.3464, allocations: 27.94 kB / 406 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.3475, allocations: 359.6 kB / 406.3 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.3475, allocations: 3.906 kB / 406.3 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.901e-05/0.3476, allocations: 12 kB / 406.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3476, allocations: 7.938 kB / 406.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.3492, allocations: 0.4901 MB / 406.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002335/0.3516, allocations: 1.003 MB / 407.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.353, allocations: 339 kB / 408.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006225/0.3537, allocations: 181.2 kB / 408.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.271e-05/0.3537, allocations: 4.234 kB / 408.4 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.3538, allocations: 30.8 kB / 408.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.214e-06/0.3538, allocations: 0 / 408.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.02964/0.3834, allocations: 5.807 MB / 414.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.3835, allocations: 59.78 kB / 414.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002618/0.3838, allocations: 206.5 kB / 414.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/0.3839, allocations: 33.7 kB / 414.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.384, allocations: 160.6 kB / 414.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.3841, allocations: 177.4 kB / 414.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.3844, allocations: 86.25 kB / 414.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3845, allocations: 334.8 kB / 415.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.3857, allocations: 468.8 kB / 415.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.3868, allocations: 0.5177 MB / 416.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001987/0.3888, allocations: 0.7993 MB / 417 MB, free: 8.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3889, allocations: 0 / 417 MB, free: 8.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002461/0.3913, allocations: 0.9943 MB / 418 MB, free: 7.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.3914, allocations: 11.94 kB / 418 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3914, allocations: 0 / 418 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.3914, allocations: 4 kB / 418 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009288/0.3923, allocations: 171.7 kB / 418.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3924, allocations: 8.031 kB / 418.2 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000633/0.393, allocations: 79.89 kB / 418.3 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.985e-05/0.3931, allocations: 16 kB / 418.3 MB, free: 6.906 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002372/0.3933, allocations: 161.7 kB / 418.4 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.824e-05/0.3934, allocations: 27.66 kB / 418.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.3935, allocations: 55.23 kB / 418.5 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3935, allocations: 8 kB / 418.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3936, allocations: 0 / 418.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3936, allocations: 0 / 418.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.3974, allocations: 1.87 MB / 420.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.3974, allocations: 8 kB / 420.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006152/0.398, allocations: 148.5 kB / 420.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.398, allocations: 19.94 kB / 420.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.3981, allocations: 20 kB / 420.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-05/0.3981, allocations: 19.94 kB / 420.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/0.3981, allocations: 11.94 kB / 420.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.4006, allocations: 1.221 MB / 421.9 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002035/0.4008, allocations: 148.8 kB / 422 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.4008, allocations: 20 kB / 422 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004991/0.4013, allocations: 71.91 kB / 422.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.4016, allocations: 87.67 kB / 422.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.4016, allocations: 20 kB / 422.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001745/0.4018, allocations: 144.3 kB / 422.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4018, allocations: 4 kB / 422.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004969/0.4023, allocations: 96 kB / 422.4 MB, free: 2.441 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001555/0.4024, allocations: 131.1 kB / 422.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.4045, allocations: 0.8726 MB / 423.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.4045, allocations: 0 / 423.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008444/0.4054, allocations: 324.3 kB / 423.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.406, allocations: 55.95 kB / 423.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.4081, allocations: 1.021 MB / 424.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.4085, allocations: 0.7801 MB / 425.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003606/0.4088, allocations: 83.17 kB / 425.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002194/0.4091, allocations: 35.38 kB / 425.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4091, allocations: 4 kB / 425.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Templates: time 0.01053/0.4196, allocations: 5.765 MB / 431.5 MB, free: 9.234 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches