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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009226/0.0009226, allocations: 180.8 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008486/0.0008483, allocations: 94.22 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.0002621, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.254, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09575/0.3498, allocations: 79.43 MB / 480.9 MB, free: 1.062 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.3501, allocations: 71.97 kB / 481 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01612/0.3663, allocations: 5.633 MB / 486.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3663, allocations: 0 / 486.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.3664, allocations: 4 kB / 486.6 MB, free: 11.36 MB / 362.7 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.001006/0.3674, allocations: 0.5687 MB / 487.2 MB, free: 10.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3674, allocations: 8.031 kB / 487.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.3675, allocations: 35.7 kB / 487.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.3678, allocations: 239.4 kB / 487.5 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.368, allocations: 141.6 kB / 487.6 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.306e-05/0.3681, allocations: 24 kB / 487.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008202/0.3689, allocations: 375.6 kB / 488 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.3689, allocations: 4 kB / 488 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.369, allocations: 11.95 kB / 488 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.369, allocations: 12 kB / 488 MB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.3703, allocations: 0.5212 MB / 488.5 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.372, allocations: 1.03 MB / 489.6 MB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009328/0.3729, allocations: 350.3 kB / 489.9 MB, free: 7.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.373, allocations: 4 kB / 489.9 MB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.373, allocations: 30.56 kB / 489.9 MB, free: 7.816 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.373, allocations: 0 / 489.9 MB, free: 7.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.02611/0.3991, allocations: 6.688 MB / 496.6 MB, free: 1.035 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.3992, allocations: 59.84 kB / 496.7 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.3995, allocations: 193.8 kB / 496.9 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.3995, allocations: 37.7 kB / 496.9 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.494e-05/0.3996, allocations: 140.7 kB / 497.1 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.3998, allocations: 181.4 kB / 497.2 MB, free: 416 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.3998, allocations: 12 kB / 497.2 MB, free: 404 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3999, allocations: 334.8 kB / 497.6 MB, free: 60 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.4011, allocations: 0.497 MB / 498.1 MB, free: 15.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.4024, allocations: 0.5568 MB / 498.6 MB, free: 14.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.4035, allocations: 442 kB / 499.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4035, allocations: 0 / 499.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002583/0.4061, allocations: 1.072 MB / 0.4884 GB, free: 13.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.4061, allocations: 10.66 kB / 0.4884 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.4062, allocations: 0 / 0.4884 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.663e-05/0.4062, allocations: 7.953 kB / 0.4884 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.4072, allocations: 195.7 kB / 0.4886 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.4073, allocations: 7.984 kB / 0.4886 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007143/0.408, allocations: 103.9 kB / 0.4887 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.4081, allocations: 16 kB / 0.4887 GB, free: 13.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0003168/0.4084, allocations: 169.6 kB / 0.4889 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.4085, allocations: 23.72 kB / 0.4889 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001774/0.4087, allocations: 51.3 kB / 0.489 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4087, allocations: 8 kB / 0.489 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.327e-05/0.4087, allocations: 3.953 kB / 0.489 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.4088, allocations: 0 / 0.489 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004204/0.413, allocations: 2.011 MB / 0.4909 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.413, allocations: 12 kB / 0.491 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006219/0.4136, allocations: 164 kB / 0.4911 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/0.4137, allocations: 12 kB / 0.4911 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.4137, allocations: 16 kB / 0.4911 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-05/0.4137, allocations: 19.92 kB / 0.4912 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/0.4137, allocations: 15.88 kB / 0.4912 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002975/0.4167, allocations: 1.76 MB / 0.4929 GB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/0.4169, allocations: 148.7 kB / 0.493 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.787e-05/0.417, allocations: 24 kB / 0.4931 GB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.4175, allocations: 95.91 kB / 0.4931 GB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.4177, allocations: 95.67 kB / 0.4932 GB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.772e-05/0.4178, allocations: 24 kB / 0.4933 GB, free: 7.969 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001753/0.418, allocations: 151.2 kB / 0.4934 GB, free: 7.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.418, allocations: 0 / 0.4934 GB, free: 7.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005003/0.4185, allocations: 96 kB / 0.4935 GB, free: 7.727 MB / 378.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001903/0.4187, allocations: 139 kB / 0.4936 GB, free: 7.582 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00219/0.4209, allocations: 0.9236 MB / 0.4945 GB, free: 6.652 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4209, allocations: 4.062 kB / 0.4945 GB, free: 6.648 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008932/0.4218, allocations: 373.5 kB / 0.4949 GB, free: 6.285 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.4222, allocations: 54.83 kB / 0.4949 GB, free: 6.234 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.4243, allocations: 1.161 MB / 0.4961 GB, free: 4.941 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.4246, allocations: 0.7925 MB / 0.4969 GB, free: 4.125 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004739/0.4251, allocations: 78.92 kB / 0.4969 GB, free: 4.051 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.4253, allocations: 35.42 kB / 0.497 GB, free: 4.016 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.4253, allocations: 0 / 0.497 GB, free: 4.016 MB / 378.7 MB Notification: Performance of Templates: time 0.1912/0.6165, allocations: 5.082 MB / 0.5019 GB, free: 103 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches