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.0009628/0.0009627, allocations: 171.8 kB / 16.8 MB, free: 5.004 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.4 MB / 223 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009758/0.0009759, allocations: 88.98 kB / 271.3 MB, free: 8.25 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.08237/0.08237, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004157/0.0004158, allocations: 12 kB / 393.2 MB, free: 65.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.08923, allocations: 50.38 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3216/0.4109, allocations: 81.01 MB / 0.5123 GB, free: 12.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.4112, allocations: 78.02 kB / 0.5124 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01445/0.4256, allocations: 5.572 MB / 0.5178 GB, free: 9.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4257, allocations: 0 / 0.5178 GB, free: 9.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.825e-05/0.4257, allocations: 4 kB / 0.5178 GB, free: 9.785 MB / 330.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.0009604/0.4267, allocations: 0.5607 MB / 0.5184 GB, free: 9.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.4267, allocations: 12.03 kB / 0.5184 GB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.4269, allocations: 32.64 kB / 0.5184 GB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.4272, allocations: 254.3 kB / 0.5187 GB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.4274, allocations: 141.8 kB / 0.5188 GB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.391e-05/0.4274, allocations: 23.56 kB / 0.5188 GB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007884/0.4282, allocations: 386.5 kB / 0.5192 GB, free: 8.426 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.4283, allocations: 4 kB / 0.5192 GB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.4283, allocations: 7.688 kB / 0.5192 GB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.4283, allocations: 8 kB / 0.5192 GB, free: 8.414 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.4295, allocations: 0.519 MB / 0.5197 GB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.4311, allocations: 1.029 MB / 0.5207 GB, free: 7.148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008996/0.432, allocations: 347.9 kB / 0.5211 GB, free: 6.875 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004506/0.4325, allocations: 189.7 kB / 0.5212 GB, free: 6.734 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.4325, allocations: 7.938 kB / 0.5212 GB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/0.4326, allocations: 34.56 kB / 0.5213 GB, free: 6.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.585e-06/0.4326, allocations: 0 / 0.5213 GB, free: 6.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.02462/0.4573, allocations: 6.705 MB / 0.5278 GB, free: 0.7148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.4574, allocations: 59.78 kB / 0.5279 GB, free: 0.6445 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.4577, allocations: 202.6 kB / 0.5281 GB, free: 480 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.684e-05/0.4577, allocations: 32.33 kB / 0.5281 GB, free: 448 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.424e-05/0.4578, allocations: 158.3 kB / 0.5283 GB, free: 300 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.458, allocations: 178.1 kB / 0.5284 GB, free: 148 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.458, allocations: 13.81 kB / 0.5284 GB, free: 144 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.4582, allocations: 332.6 kB / 0.5288 GB, free: 15.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.4594, allocations: 0.5008 MB / 0.5292 GB, free: 15.47 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.4608, allocations: 0.5574 MB / 0.5298 GB, free: 15.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002343/0.4632, allocations: 0.8784 MB / 0.5306 GB, free: 14.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.4632, allocations: 0 / 0.5306 GB, free: 14.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002737/0.4659, allocations: 1.074 MB / 0.5317 GB, free: 13.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.466, allocations: 8.625 kB / 0.5317 GB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.466, allocations: 3.938 kB / 0.5317 GB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.466, allocations: 4 kB / 0.5317 GB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009719/0.467, allocations: 193.4 kB / 0.5319 GB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.467, allocations: 7.938 kB / 0.5319 GB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006989/0.4677, allocations: 102.4 kB / 0.532 GB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/0.4678, allocations: 23.47 kB / 0.532 GB, free: 13.32 MB / 346.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.0002712/0.4681, allocations: 154.1 kB / 0.5322 GB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.4682, allocations: 27.72 kB / 0.5322 GB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.4683, allocations: 56.8 kB / 0.5322 GB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.4683, allocations: 7.938 kB / 0.5323 GB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.4683, allocations: 0 / 0.5323 GB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.4683, allocations: 3.984 kB / 0.5323 GB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004258/0.4726, allocations: 2.014 MB / 0.5342 GB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.931e-05/0.4726, allocations: 8 kB / 0.5342 GB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006781/0.4733, allocations: 167.8 kB / 0.5344 GB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.562e-05/0.4734, allocations: 8 kB / 0.5344 GB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.962e-05/0.4734, allocations: 22.92 kB / 0.5344 GB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.531e-05/0.4734, allocations: 19.88 kB / 0.5344 GB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/0.4735, allocations: 11.94 kB / 0.5345 GB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003071/0.4765, allocations: 1.354 MB / 0.5358 GB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.4768, allocations: 149 kB / 0.5359 GB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.4769, allocations: 26.8 kB / 0.5359 GB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005286/0.4774, allocations: 89.92 kB / 0.536 GB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.4776, allocations: 93.81 kB / 0.5361 GB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.4777, allocations: 23.38 kB / 0.5361 GB, free: 9.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001955/0.4779, allocations: 163.5 kB / 0.5363 GB, free: 9.363 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4779, allocations: 0 / 0.5363 GB, free: 9.363 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005647/0.4785, allocations: 96.88 kB / 0.5364 GB, free: 9.281 MB / 346.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.0001942/0.4787, allocations: 121 kB / 0.5365 GB, free: 9.164 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.481, allocations: 0.9359 MB / 0.5374 GB, free: 8.488 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.481, allocations: 0 / 0.5374 GB, free: 8.488 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009416/0.4819, allocations: 372.9 kB / 0.5378 GB, free: 8.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007011/0.4826, allocations: 68.98 kB / 0.5378 GB, free: 8.129 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.4849, allocations: 1.17 MB / 0.539 GB, free: 6.941 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.4853, allocations: 0.7845 MB / 0.5398 GB, free: 6.137 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005294/0.4859, allocations: 74.94 kB / 0.5398 GB, free: 6.062 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.4861, allocations: 27.44 kB / 0.5398 GB, free: 6.035 MB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4861, allocations: 0 / 0.5398 GB, free: 6.035 MB / 346.7 MB Notification: Performance of Templates: time 0.009528/0.4956, allocations: 5.127 MB / 0.5449 GB, free: 0.9336 MB / 346.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