Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002089/0.002089, allocations: 177.7 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.231/2.231, allocations: 205.3 MB / 213.8 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 82.3 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09989/0.09989, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.425e-05/1.426e-05, allocations: 0 / 378.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3071, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1445/0.4517, allocations: 80.22 MB / 0.4976 GB, free: 2.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003942/0.4522, allocations: 71.95 kB / 0.4976 GB, free: 1.949 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03085/0.4831, allocations: 5.534 MB / 0.503 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4831, allocations: 4 kB / 0.5031 GB, free: 12.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.4832, allocations: 4 kB / 0.5031 GB, free: 12.4 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.001511/0.4847, allocations: 0.533 MB / 0.5036 GB, free: 11.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.4848, allocations: 8.031 kB / 0.5036 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.4849, allocations: 31.72 kB / 0.5036 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.4854, allocations: 250.7 kB / 0.5039 GB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003075/0.4857, allocations: 129.6 kB / 0.504 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.645e-05/0.4858, allocations: 23.91 kB / 0.504 GB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00108/0.4869, allocations: 373 kB / 0.5044 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007093/0.4876, allocations: 278.6 kB / 0.5046 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.4877, allocations: 0 / 0.5046 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.596e-05/0.4877, allocations: 7.922 kB / 0.5046 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.4878, allocations: 8 kB / 0.5046 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002735/0.4905, allocations: 0.983 MB / 0.5056 GB, free: 9.629 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009264/0.4915, allocations: 242.6 kB / 0.5058 GB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.4919, allocations: 116.9 kB / 0.5059 GB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.433e-05/0.4919, allocations: 11.97 kB / 0.506 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.492, allocations: 34.56 kB / 0.506 GB, free: 9.211 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.746e-06/0.492, allocations: 3.938 kB / 0.506 GB, free: 9.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.01334/0.5053, allocations: 2.965 MB / 0.5089 GB, free: 6.148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.5054, allocations: 59.84 kB / 0.5089 GB, free: 6.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.5057, allocations: 181.4 kB / 0.5091 GB, free: 5.895 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.698e-05/0.5058, allocations: 25.7 kB / 0.5091 GB, free: 5.863 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.5059, allocations: 148.7 kB / 0.5093 GB, free: 5.711 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.5062, allocations: 181.3 kB / 0.5095 GB, free: 5.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.02e-05/0.5063, allocations: 0 / 0.5095 GB, free: 5.531 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.5064, allocations: 338.8 kB / 0.5098 GB, free: 5.191 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008491/0.5073, allocations: 317.1 kB / 0.5101 GB, free: 4.879 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008732/0.5082, allocations: 373.3 kB / 0.5104 GB, free: 4.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006608/0.5088, allocations: 254 kB / 0.5107 GB, free: 4.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.5089, allocations: 0 / 0.5107 GB, free: 4.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001854/0.5107, allocations: 0.6706 MB / 0.5113 GB, free: 3.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.5108, allocations: 11.95 kB / 0.5113 GB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.5108, allocations: 0 / 0.5113 GB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.5108, allocations: 7.938 kB / 0.5114 GB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.5127, allocations: 183.9 kB / 0.5115 GB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.5128, allocations: 4 kB / 0.5115 GB, free: 3.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.5141, allocations: 99.88 kB / 0.5116 GB, free: 3.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-05/0.5142, allocations: 16 kB / 0.5116 GB, free: 3.262 MB / 362.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 () * 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.0002485/0.5145, allocations: 112.9 kB / 0.5117 GB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.5146, allocations: 27.72 kB / 0.5118 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001982/0.5149, allocations: 51.34 kB / 0.5118 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.5149, allocations: 4 kB / 0.5118 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.5149, allocations: 0 / 0.5118 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.5149, allocations: 3.984 kB / 0.5118 GB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.5201, allocations: 1.621 MB / 0.5134 GB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.418e-05/0.5201, allocations: 12 kB / 0.5134 GB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.5215, allocations: 168 kB / 0.5136 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.699e-05/0.5215, allocations: 12 kB / 0.5136 GB, free: 1.102 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-05/0.5216, allocations: 15.94 kB / 0.5136 GB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.878e-05/0.5216, allocations: 15.94 kB / 0.5136 GB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-05/0.5216, allocations: 11.94 kB / 0.5136 GB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2822/0.8038, allocations: 1.291 MB / 0.5149 GB, free: 90.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003254/0.8042, allocations: 146.9 kB / 0.515 GB, free: 90.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.798e-05/0.8043, allocations: 12.78 kB / 0.5151 GB, free: 90.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.8054, allocations: 84.3 kB / 0.5151 GB, free: 90.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003253/0.8057, allocations: 95.09 kB / 0.5152 GB, free: 90.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.8058, allocations: 24.77 kB / 0.5152 GB, free: 90.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002092/0.8061, allocations: 138.1 kB / 0.5154 GB, free: 90.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.223e-06/0.8061, allocations: 0.5625 kB / 0.5154 GB, free: 90.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008316/0.8069, allocations: 84.09 kB / 0.5155 GB, free: 90.08 MB / 362.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 () * 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.0002354/0.8072, allocations: 113 kB / 0.5156 GB, free: 89.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.8088, allocations: 0.5779 MB / 0.5161 GB, free: 89.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.8088, allocations: 4.594 kB / 0.5161 GB, free: 89.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007525/0.8096, allocations: 210.7 kB / 0.5163 GB, free: 89.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007036/0.8103, allocations: 46.38 kB / 0.5164 GB, free: 89.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.813, allocations: 0.8063 MB / 0.5172 GB, free: 89.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.8134, allocations: 0.7885 MB / 0.5179 GB, free: 88.83 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009253/0.8144, allocations: 78.66 kB / 0.518 GB, free: 88.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004091/0.8148, allocations: 32.69 kB / 0.518 GB, free: 88.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/0.8148, allocations: 0.9688 kB / 0.518 GB, free: 88.79 MB / 362.7 MB Notification: Performance of Templates: time 0.01603/0.8308, allocations: 4.985 MB / 0.5229 GB, free: 88.5 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches