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.001116/0.001116, allocations: 197.4 kB / 18.1 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.5 MB / 245.4 MB, free: 6.527 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007853/0.0007852, allocations: 99.61 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002336/0.0002336, allocations: 4 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2521, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09748/0.3496, allocations: 80.19 MB / 489.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.3498, allocations: 75.97 kB / 489.6 MB, free: 11.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0159/0.3658, allocations: 5.679 MB / 495.3 MB, free: 5.562 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.337e-06/0.3658, allocations: 3.938 kB / 495.3 MB, free: 5.559 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.402e-05/0.3658, allocations: 7.938 kB / 495.3 MB, free: 5.551 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.000907/0.3667, allocations: 0.5572 MB / 495.9 MB, free: 4.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.659e-05/0.3668, allocations: 8.031 kB / 495.9 MB, free: 4.934 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.3669, allocations: 32.66 kB / 495.9 MB, free: 4.902 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.3672, allocations: 247.5 kB / 496.2 MB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.3674, allocations: 146.2 kB / 496.3 MB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.074e-05/0.3674, allocations: 24.28 kB / 496.3 MB, free: 4.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008326/0.3683, allocations: 391.4 kB / 496.7 MB, free: 4.047 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.3683, allocations: 0 / 496.7 MB, free: 4.047 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.3683, allocations: 12 kB / 496.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3684, allocations: 4 kB / 496.7 MB, free: 4.031 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.3696, allocations: 0.5213 MB / 497.2 MB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.3713, allocations: 1.03 MB / 498.3 MB, free: 2.414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009522/0.3722, allocations: 334.3 kB / 498.6 MB, free: 2.078 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004998/0.3728, allocations: 196.7 kB / 498.8 MB, free: 1.883 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.3728, allocations: 4 kB / 498.8 MB, free: 1.879 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.3728, allocations: 46.47 kB / 498.8 MB, free: 1.824 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.3728, allocations: 0 / 498.8 MB, free: 1.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.02485/0.3977, allocations: 6.692 MB / 0.4937 GB, free: 11.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.3978, allocations: 59.78 kB / 0.4937 GB, free: 10.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.398, allocations: 202.8 kB / 0.4939 GB, free: 10.76 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.446e-05/0.3981, allocations: 37.7 kB / 0.494 GB, free: 10.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.619e-05/0.3982, allocations: 148.7 kB / 0.4941 GB, free: 10.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.3983, allocations: 185.3 kB / 0.4943 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.3984, allocations: 8 kB / 0.4943 GB, free: 10.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3985, allocations: 338.8 kB / 0.4946 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/0.4, allocations: 0.493 MB / 0.4951 GB, free: 9.543 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.4014, allocations: 0.5607 MB / 0.4956 GB, free: 8.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002494/0.4039, allocations: 0.8853 MB / 0.4965 GB, free: 8.062 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4039, allocations: 0 / 0.4965 GB, free: 8.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002756/0.4066, allocations: 1.072 MB / 0.4976 GB, free: 6.984 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.4067, allocations: 4 kB / 0.4976 GB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.4067, allocations: 0 / 0.4976 GB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.4067, allocations: 4 kB / 0.4976 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.408, allocations: 191.7 kB / 0.4977 GB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.4081, allocations: 4 kB / 0.4978 GB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007447/0.4088, allocations: 111.9 kB / 0.4979 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.506e-05/0.4089, allocations: 16 kB / 0.4979 GB, free: 6.66 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.0002609/0.4092, allocations: 162.7 kB / 0.498 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.94e-05/0.4092, allocations: 23.72 kB / 0.4981 GB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.4094, allocations: 59.3 kB / 0.4981 GB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.4094, allocations: 11.94 kB / 0.4981 GB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4094, allocations: 0 / 0.4981 GB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.4094, allocations: 3.984 kB / 0.4981 GB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/0.4137, allocations: 2.005 MB / 0.5001 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.4138, allocations: 12 kB / 0.5001 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000654/0.4144, allocations: 168.1 kB / 0.5003 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.995e-05/0.4145, allocations: 12 kB / 0.5003 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.4145, allocations: 20 kB / 0.5003 GB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.092e-05/0.4145, allocations: 19.88 kB / 0.5003 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-05/0.4146, allocations: 11.94 kB / 0.5003 GB, free: 3.988 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002918/0.4175, allocations: 1.35 MB / 0.5016 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.4177, allocations: 148.8 kB / 0.5018 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.458e-05/0.4178, allocations: 23.92 kB / 0.5018 GB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005157/0.4183, allocations: 95.92 kB / 0.5019 GB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.4185, allocations: 99.59 kB / 0.502 GB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.4185, allocations: 24 kB / 0.502 GB, free: 2.102 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001757/0.4187, allocations: 159.1 kB / 0.5022 GB, free: 1.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.813e-06/0.4187, allocations: 0 / 0.5022 GB, free: 1.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005443/0.4193, allocations: 99.94 kB / 0.5023 GB, free: 1.848 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.0001933/0.4195, allocations: 139 kB / 0.5024 GB, free: 1.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002229/0.4217, allocations: 0.9313 MB / 0.5033 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.4217, allocations: 0 / 0.5033 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009311/0.4227, allocations: 373.7 kB / 0.5037 GB, free: 412 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000729/0.4234, allocations: 62.2 kB / 0.5037 GB, free: 352 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1774/0.6008, allocations: 1.149 MB / 0.5048 GB, free: 99.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.6013, allocations: 0.7832 MB / 0.5056 GB, free: 98.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005979/0.6019, allocations: 78.38 kB / 0.5057 GB, free: 98.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.6021, allocations: 31.42 kB / 0.5057 GB, free: 98.53 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6021, allocations: 0 / 0.5057 GB, free: 98.53 MB / 378.7 MB Notification: Performance of Templates: time 0.00999/0.6121, allocations: 5.11 MB / 0.5107 GB, free: 98.12 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/jenkins1/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