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.001101/0.001101, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.821/1.821, allocations: 205.2 MB / 219 MB, free: 9.203 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.0008877/0.0008875, allocations: 88.27 kB / 267.1 MB, free: 9.285 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.08358/0.08358, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.229e-05/3.232e-05, allocations: 0 / 386 MB, free: 69.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09726, allocations: 50.37 MB / 436.4 MB, free: 19.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3857/0.483, allocations: 80.87 MB / 0.5051 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.4833, allocations: 75.22 kB / 0.5052 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01562/0.4989, allocations: 5.562 MB / 0.5106 GB, free: 9.926 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.499, allocations: 3.844 kB / 0.5106 GB, free: 9.926 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.499, allocations: 7.812 kB / 0.5106 GB, free: 9.922 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.0007997/0.4998, allocations: 0.5303 MB / 0.5111 GB, free: 9.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4999, allocations: 11.5 kB / 0.5112 GB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.436e-05/0.4999, allocations: 35.25 kB / 0.5112 GB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.5003, allocations: 243.6 kB / 0.5114 GB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.5006, allocations: 143 kB / 0.5116 GB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.562e-05/0.5007, allocations: 29.66 kB / 0.5116 GB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.5012, allocations: 309 kB / 0.5119 GB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.5013, allocations: 0 / 0.5119 GB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.5013, allocations: 10.25 kB / 0.5119 GB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.5013, allocations: 7.844 kB / 0.5119 GB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005861/0.5019, allocations: 394.1 kB / 0.5123 GB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.5035, allocations: 1.026 MB / 0.5133 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006487/0.5041, allocations: 261 kB / 0.5135 GB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.5043, allocations: 128.6 kB / 0.5136 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.821e-05/0.5044, allocations: 3.781 kB / 0.5136 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.5044, allocations: 34.5 kB / 0.5137 GB, free: 8.246 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.034e-06/0.5044, allocations: 0 / 0.5137 GB, free: 8.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.006754/0.5112, allocations: 3.102 MB / 0.5167 GB, free: 7.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.5113, allocations: 59.66 kB / 0.5168 GB, free: 7.113 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.5115, allocations: 180.3 kB / 0.5169 GB, free: 7.012 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.06e-05/0.5116, allocations: 36.05 kB / 0.517 GB, free: 6.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.5117, allocations: 151.2 kB / 0.5171 GB, free: 6.852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.5118, allocations: 175.5 kB / 0.5173 GB, free: 6.727 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.5119, allocations: 10.78 kB / 0.5173 GB, free: 6.727 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.512, allocations: 340.2 kB / 0.5176 GB, free: 6.402 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004455/0.5124, allocations: 333.3 kB / 0.5179 GB, free: 6.391 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/0.5129, allocations: 389.6 kB / 0.5183 GB, free: 6.332 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.5133, allocations: 268.2 kB / 0.5186 GB, free: 6.297 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5133, allocations: 0 / 0.5186 GB, free: 6.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001094/0.5144, allocations: 0.7104 MB / 0.5193 GB, free: 5.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.048e-05/0.5145, allocations: 15.98 kB / 0.5193 GB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.5145, allocations: 0 / 0.5193 GB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.5146, allocations: 4 kB / 0.5193 GB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009994/0.5156, allocations: 183.4 kB / 0.5195 GB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.5156, allocations: 7.938 kB / 0.5195 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000683/0.5163, allocations: 107.3 kB / 0.5196 GB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.326e-05/0.5163, allocations: 15.5 kB / 0.5196 GB, free: 5.676 MB / 330.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.0001418/0.5165, allocations: 134.6 kB / 0.5197 GB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.287e-05/0.5166, allocations: 27.62 kB / 0.5197 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.5167, allocations: 45.53 kB / 0.5198 GB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.5167, allocations: 4 kB / 0.5198 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.5167, allocations: 11.98 kB / 0.5198 GB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5167, allocations: 0 / 0.5198 GB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.5195, allocations: 1.733 MB / 0.5215 GB, free: 3.969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.5195, allocations: 8 kB / 0.5215 GB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000616/0.5201, allocations: 167.2 kB / 0.5217 GB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.157e-05/0.5201, allocations: 12 kB / 0.5217 GB, free: 3.789 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/0.5202, allocations: 25.14 kB / 0.5217 GB, free: 3.773 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.417e-06/0.5202, allocations: 15.94 kB / 0.5217 GB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.767e-06/0.5202, allocations: 19.92 kB / 0.5217 GB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.5214, allocations: 1.335 MB / 0.523 GB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.5215, allocations: 152.1 kB / 0.5232 GB, free: 2.168 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/0.5216, allocations: 23.11 kB / 0.5232 GB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/0.5221, allocations: 91.61 kB / 0.5233 GB, free: 2.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.5223, allocations: 98.77 kB / 0.5234 GB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.5223, allocations: 20 kB / 0.5234 GB, free: 1.969 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001091/0.5224, allocations: 146.4 kB / 0.5235 GB, free: 1.848 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.666e-05/0.5225, allocations: 8 kB / 0.5235 GB, free: 1.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004461/0.5229, allocations: 99.58 kB / 0.5236 GB, free: 1.758 MB / 330.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.0001377/0.5231, allocations: 122.8 kB / 0.5238 GB, free: 1.633 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000813/0.5239, allocations: 0.6178 MB / 0.5244 GB, free: 1.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5239, allocations: 4 kB / 0.5244 GB, free: 1.266 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003467/0.5243, allocations: 230.5 kB / 0.5246 GB, free: 1.098 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.5247, allocations: 49.77 kB / 0.5246 GB, free: 1.062 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.5261, allocations: 0.8358 MB / 0.5254 GB, free: 208 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.5264, allocations: 0.7887 MB / 0.5262 GB, free: 15.39 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004815/0.5269, allocations: 74.94 kB / 0.5263 GB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.5271, allocations: 31.44 kB / 0.5263 GB, free: 15.29 MB / 346.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5271, allocations: 4 kB / 0.5263 GB, free: 15.29 MB / 346.7 MB Notification: Performance of Templates: time 0.009011/0.5361, allocations: 5.108 MB / 0.5313 GB, free: 10.21 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/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