Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 227.2 MB / 245 MB, free: 7.555 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008972/0.0008972, allocations: 96.05 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002084/0.0002084, allocations: 4 kB / 357.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1965, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08515/0.2817, allocations: 80.24 MB / 489.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.2819, allocations: 71.97 kB / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0156/0.2975, allocations: 5.688 MB / 495.4 MB, free: 4.629 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.827e-06/0.2976, allocations: 3.984 kB / 495.4 MB, free: 4.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.2976, allocations: 4 kB / 495.4 MB, free: 4.621 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.0008692/0.2985, allocations: 0.5611 MB / 496 MB, free: 4.012 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2985, allocations: 12.03 kB / 496 MB, free: 4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.461e-05/0.2986, allocations: 31.72 kB / 496 MB, free: 3.969 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.2989, allocations: 250.4 kB / 496.3 MB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.299, allocations: 137.6 kB / 496.4 MB, free: 3.527 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.2991, allocations: 24 kB / 496.4 MB, free: 3.504 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007747/0.2999, allocations: 383.5 kB / 496.8 MB, free: 3.117 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.2999, allocations: 4 kB / 496.8 MB, free: 3.113 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.2999, allocations: 8 kB / 496.8 MB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2999, allocations: 8 kB / 496.8 MB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.3012, allocations: 0.5174 MB / 497.3 MB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.3028, allocations: 1.023 MB / 498.3 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009075/0.3037, allocations: 346.4 kB / 498.7 MB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.3037, allocations: 8 kB / 498.7 MB, free: 1.137 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.3037, allocations: 30.56 kB / 498.7 MB, free: 1.098 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.623e-06/0.3038, allocations: 0 / 498.7 MB, free: 1.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.02646/0.3302, allocations: 6.708 MB / 0.4936 GB, free: 10.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.3303, allocations: 59.78 kB / 0.4936 GB, free: 10.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.3305, allocations: 185.9 kB / 0.4938 GB, free: 10.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/0.3306, allocations: 37.7 kB / 0.4939 GB, free: 9.996 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.843e-05/0.3307, allocations: 144.7 kB / 0.494 GB, free: 9.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.3308, allocations: 185.2 kB / 0.4942 GB, free: 9.668 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.391e-05/0.3308, allocations: 12 kB / 0.4942 GB, free: 9.656 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.3309, allocations: 334.8 kB / 0.4945 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.3321, allocations: 0.4969 MB / 0.495 GB, free: 8.824 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.3333, allocations: 0.5607 MB / 0.4955 GB, free: 8.246 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.3344, allocations: 442 kB / 0.496 GB, free: 7.816 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3344, allocations: 0 / 0.496 GB, free: 7.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00247/0.3369, allocations: 1.069 MB / 0.497 GB, free: 6.742 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.3369, allocations: 12.03 kB / 0.497 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.337, allocations: 0 / 0.497 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.337, allocations: 4 kB / 0.497 GB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/0.3379, allocations: 187.7 kB / 0.4972 GB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.338, allocations: 4 kB / 0.4972 GB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006616/0.3386, allocations: 107.9 kB / 0.4973 GB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.3387, allocations: 16 kB / 0.4973 GB, free: 6.418 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.000199/0.3389, allocations: 165.7 kB / 0.4975 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.714e-05/0.339, allocations: 27.67 kB / 0.4975 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.3391, allocations: 47.31 kB / 0.4975 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3391, allocations: 4 kB / 0.4975 GB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.3391, allocations: 7.984 kB / 0.4976 GB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3391, allocations: 0 / 0.4976 GB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.3429, allocations: 2.007 MB / 0.4995 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.3429, allocations: 19.97 kB / 0.4995 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006303/0.3435, allocations: 163.9 kB / 0.4997 GB, free: 3.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.3436, allocations: 12 kB / 0.4997 GB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.11e-05/0.3436, allocations: 20 kB / 0.4997 GB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-05/0.3436, allocations: 23.88 kB / 0.4997 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.3436, allocations: 11.94 kB / 0.4998 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002736/0.3464, allocations: 1.754 MB / 0.5015 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.3466, allocations: 148.7 kB / 0.5016 GB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.066e-05/0.3466, allocations: 31.94 kB / 0.5016 GB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/0.3471, allocations: 91.92 kB / 0.5017 GB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.3473, allocations: 95.7 kB / 0.5018 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.664e-05/0.3474, allocations: 27.94 kB / 0.5018 GB, free: 1.227 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.3475, allocations: 152.3 kB / 0.502 GB, free: 1.078 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.322e-06/0.3475, allocations: 0 / 0.502 GB, free: 1.078 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000438/0.348, allocations: 103.9 kB / 0.5021 GB, free: 0.9766 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.000154/0.3481, allocations: 131 kB / 0.5022 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1407/0.4888, allocations: 0.9298 MB / 0.5031 GB, free: 99.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/0.4888, allocations: 2.062 kB / 0.5031 GB, free: 99.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.49, allocations: 370.2 kB / 0.5035 GB, free: 99.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.4905, allocations: 55.52 kB / 0.5035 GB, free: 99.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.4927, allocations: 1.158 MB / 0.5047 GB, free: 98.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.493, allocations: 0.7879 MB / 0.5054 GB, free: 97.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005065/0.4935, allocations: 75.59 kB / 0.5055 GB, free: 97.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.4937, allocations: 32.64 kB / 0.5055 GB, free: 97.72 MB / 378.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4937, allocations: 0.6562 kB / 0.5055 GB, free: 97.72 MB / 378.7 MB Notification: Performance of Templates: time 0.008651/0.5024, allocations: 5.098 MB / 0.5105 GB, free: 97.21 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches