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.001498/0.001498, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, 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.0008484/0.0008484, allocations: 86.22 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.07448/0.07448, 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.498e-05, allocations: 0 / 378.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2358, allocations: 50.38 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.3368, allocations: 80.21 MB / 0.4976 GB, free: 2.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.337, allocations: 75.95 kB / 0.4976 GB, free: 1.945 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01572/0.3528, allocations: 5.534 MB / 0.503 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3528, allocations: 0 / 0.503 GB, free: 12.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.3528, allocations: 4 kB / 0.503 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.0008986/0.3537, allocations: 0.5447 MB / 0.5036 GB, free: 11.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.3538, allocations: 8.031 kB / 0.5036 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.821e-05/0.3538, allocations: 31.72 kB / 0.5036 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.3542, allocations: 246.7 kB / 0.5039 GB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.3544, allocations: 141.6 kB / 0.504 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.3544, allocations: 15.91 kB / 0.504 GB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000603/0.355, allocations: 373 kB / 0.5044 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.3555, allocations: 278.6 kB / 0.5046 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.3555, allocations: 0 / 0.5046 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.3555, allocations: 4 kB / 0.5046 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3555, allocations: 8 kB / 0.5046 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.3571, allocations: 0.9791 MB / 0.5056 GB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000508/0.3576, allocations: 246.5 kB / 0.5058 GB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.3578, allocations: 116.8 kB / 0.5059 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.535e-05/0.3579, allocations: 4 kB / 0.5059 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.3579, allocations: 34.56 kB / 0.506 GB, free: 9.211 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.533e-06/0.3579, allocations: 0 / 0.506 GB, free: 9.211 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.006838/0.3648, allocations: 2.973 MB / 0.5089 GB, free: 6.145 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.3649, allocations: 59.84 kB / 0.5089 GB, free: 6.074 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.3651, allocations: 185.4 kB / 0.5091 GB, free: 5.887 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.252e-05/0.3651, allocations: 25.7 kB / 0.5091 GB, free: 5.855 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.3653, allocations: 152.7 kB / 0.5093 GB, free: 5.699 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.3654, allocations: 169.4 kB / 0.5094 GB, free: 5.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.3655, allocations: 0 / 0.5094 GB, free: 5.531 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3656, allocations: 342.8 kB / 0.5098 GB, free: 5.188 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004613/0.3661, allocations: 309.1 kB / 0.5101 GB, free: 4.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005042/0.3666, allocations: 381.2 kB / 0.5104 GB, free: 4.496 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.367, allocations: 254.1 kB / 0.5107 GB, free: 4.246 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.367, allocations: 0 / 0.5107 GB, free: 4.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001025/0.368, allocations: 0.6667 MB / 0.5113 GB, free: 3.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3681, allocations: 7.953 kB / 0.5113 GB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3681, allocations: 8.125 kB / 0.5113 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3681, allocations: 0 / 0.5113 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.3691, allocations: 191.7 kB / 0.5115 GB, free: 3.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3691, allocations: 0 / 0.5115 GB, free: 3.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006883/0.3698, allocations: 99.88 kB / 0.5116 GB, free: 3.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.318e-05/0.3699, allocations: 20 kB / 0.5116 GB, free: 3.258 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.000197/0.3701, allocations: 112.9 kB / 0.5117 GB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.681e-05/0.3702, allocations: 27.66 kB / 0.5118 GB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001201/0.3703, allocations: 47.34 kB / 0.5118 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.3703, allocations: 4 kB / 0.5118 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3703, allocations: 0 / 0.5118 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3703, allocations: 4 kB / 0.5118 GB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.3731, allocations: 1.629 MB / 0.5134 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.3732, allocations: 8 kB / 0.5134 GB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000656/0.3738, allocations: 164.5 kB / 0.5136 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.219e-05/0.3739, allocations: 12 kB / 0.5136 GB, free: 1.102 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.3739, allocations: 11.98 kB / 0.5136 GB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.378e-05/0.3739, allocations: 15.94 kB / 0.5136 GB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/0.3739, allocations: 15.94 kB / 0.5136 GB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2217/0.5956, allocations: 1.293 MB / 0.5149 GB, free: 90.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003069/0.596, allocations: 146.4 kB / 0.515 GB, free: 90.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.5961, allocations: 11.83 kB / 0.515 GB, free: 90.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.5972, allocations: 86.47 kB / 0.5151 GB, free: 90.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/0.5976, allocations: 92.12 kB / 0.5152 GB, free: 90.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.779e-05/0.5977, allocations: 23.67 kB / 0.5152 GB, free: 90.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002503/0.598, allocations: 142 kB / 0.5154 GB, free: 90.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.598, allocations: 4.469 kB / 0.5154 GB, free: 90.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009882/0.599, allocations: 80.58 kB / 0.5155 GB, free: 90.09 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.0002342/0.5993, allocations: 112.4 kB / 0.5156 GB, free: 90 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.601, allocations: 0.5776 MB / 0.5161 GB, free: 90 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.601, allocations: 0.9375 kB / 0.5161 GB, free: 90 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000686/0.6017, allocations: 214.7 kB / 0.5163 GB, free: 89.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007178/0.6024, allocations: 41.78 kB / 0.5164 GB, free: 89.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.6051, allocations: 0.8075 MB / 0.5172 GB, free: 89.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.6055, allocations: 0.7926 MB / 0.5179 GB, free: 88.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001037/0.6065, allocations: 76.53 kB / 0.518 GB, free: 88.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.6069, allocations: 30.62 kB / 0.518 GB, free: 88.8 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6069, allocations: 4 kB / 0.518 GB, free: 88.79 MB / 362.7 MB Notification: Performance of Templates: time 0.01727/0.6242, allocations: 4.993 MB / 0.5229 GB, free: 88.51 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/jenkins/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