Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002247/0.002254, allocations: 177.8 kB / 8.403 MB, free: 0.6719 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.171/2.171, allocations: 205.3 MB / 214.1 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.001113/0.001113, allocations: 84 kB / 262.1 MB, free: 1.676 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.1012/0.1012, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.092e-05/2.103e-05, allocations: 4 kB / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3161, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4605, allocations: 80.22 MB / 0.4976 GB, free: 2.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.4609, allocations: 71.97 kB / 0.4976 GB, free: 2.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02683/0.4877, allocations: 5.526 MB / 0.503 GB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4878, allocations: 0 / 0.503 GB, free: 12.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.4878, allocations: 8 kB / 0.503 GB, free: 12.48 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.001497/0.4893, allocations: 0.5369 MB / 0.5036 GB, free: 11.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4894, allocations: 8.031 kB / 0.5036 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.4895, allocations: 31.72 kB / 0.5036 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.4899, allocations: 246.7 kB / 0.5038 GB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002963/0.4902, allocations: 141.6 kB / 0.504 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.417e-05/0.4903, allocations: 19.91 kB / 0.504 GB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001052/0.4914, allocations: 377 kB / 0.5043 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007014/0.4921, allocations: 274.6 kB / 0.5046 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.4921, allocations: 0 / 0.5046 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.023e-05/0.4922, allocations: 0 / 0.5046 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.4922, allocations: 4 kB / 0.5046 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002619/0.4948, allocations: 0.9908 MB / 0.5056 GB, free: 9.707 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008721/0.4957, allocations: 246.5 kB / 0.5058 GB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.4961, allocations: 120.8 kB / 0.5059 GB, free: 9.336 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.915e-05/0.4962, allocations: 0 / 0.5059 GB, free: 9.336 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.4962, allocations: 38.5 kB / 0.506 GB, free: 9.289 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.014e-06/0.4962, allocations: 0 / 0.506 GB, free: 9.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.01301/0.5092, allocations: 2.969 MB / 0.5089 GB, free: 6.227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.5093, allocations: 55.84 kB / 0.5089 GB, free: 6.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.5096, allocations: 185.4 kB / 0.5091 GB, free: 5.973 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.771e-05/0.5097, allocations: 29.7 kB / 0.5091 GB, free: 5.938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.5099, allocations: 215 kB / 0.5093 GB, free: 5.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002228/0.5101, allocations: 173.4 kB / 0.5095 GB, free: 5.551 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.938e-05/0.5102, allocations: 3.938 kB / 0.5095 GB, free: 5.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5103, allocations: 334.8 kB / 0.5098 GB, free: 5.211 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008042/0.5112, allocations: 313.1 kB / 0.5101 GB, free: 4.902 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008742/0.512, allocations: 373.3 kB / 0.5105 GB, free: 4.523 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006671/0.5127, allocations: 258 kB / 0.5107 GB, free: 4.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.5127, allocations: 0 / 0.5107 GB, free: 4.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00181/0.5146, allocations: 0.6629 MB / 0.5114 GB, free: 3.605 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.5146, allocations: 7.953 kB / 0.5114 GB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.5146, allocations: 3.938 kB / 0.5114 GB, free: 3.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.5147, allocations: 4.125 kB / 0.5114 GB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/0.5166, allocations: 183.8 kB / 0.5115 GB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.5166, allocations: 8 kB / 0.5116 GB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.5179, allocations: 99.88 kB / 0.5117 GB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.125e-05/0.518, allocations: 16 kB / 0.5117 GB, free: 3.289 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.0002467/0.5183, allocations: 116.9 kB / 0.5118 GB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.5185, allocations: 27.62 kB / 0.5118 GB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001582/0.5186, allocations: 47.34 kB / 0.5118 GB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.5186, allocations: 4 kB / 0.5119 GB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.505e-06/0.5187, allocations: 0 / 0.5119 GB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.5187, allocations: 4 kB / 0.5119 GB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005098/0.5238, allocations: 1.617 MB / 0.5134 GB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.5238, allocations: 8 kB / 0.5134 GB, free: 1.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/0.5252, allocations: 168.3 kB / 0.5136 GB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-05/0.5252, allocations: 12 kB / 0.5136 GB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.189e-05/0.5253, allocations: 12 kB / 0.5136 GB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.129e-05/0.5253, allocations: 19.92 kB / 0.5136 GB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.58e-05/0.5254, allocations: 11.94 kB / 0.5137 GB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2965/0.8219, allocations: 1.295 MB / 0.5149 GB, free: 90.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.8223, allocations: 146.3 kB / 0.5151 GB, free: 90.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.942e-05/0.8224, allocations: 13.3 kB / 0.5151 GB, free: 90.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.8234, allocations: 86.83 kB / 0.5152 GB, free: 90.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003175/0.8237, allocations: 91.47 kB / 0.5152 GB, free: 90.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.832e-05/0.8238, allocations: 24.94 kB / 0.5153 GB, free: 90.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002138/0.8241, allocations: 139.5 kB / 0.5154 GB, free: 90.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8241, allocations: 0 / 0.5154 GB, free: 90.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008391/0.8249, allocations: 83.09 kB / 0.5155 GB, free: 90.14 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.0002223/0.8252, allocations: 117.4 kB / 0.5156 GB, free: 90.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.8267, allocations: 0.5845 MB / 0.5162 GB, free: 90.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/0.8268, allocations: 3.375 kB / 0.5162 GB, free: 90.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006959/0.8275, allocations: 207.5 kB / 0.5164 GB, free: 90.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/0.8281, allocations: 44.95 kB / 0.5164 GB, free: 90.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.8308, allocations: 0.8467 MB / 0.5172 GB, free: 89.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.8312, allocations: 0.7881 MB / 0.518 GB, free: 88.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004753/0.8317, allocations: 33.11 kB / 0.518 GB, free: 88.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8317, allocations: 0 / 0.518 GB, free: 88.86 MB / 362.7 MB Notification: Performance of Templates: time 0.01422/0.8459, allocations: 5.36 MB / 0.5233 GB, free: 88.49 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches