Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 113.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 198.9 kB / 18 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.783/2.783, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 39.94 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3931, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.006095/0.3992, allocations: 2.309 MB / 402.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.4012, allocations: 0.7793 MB / 403.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003239/0.4016, allocations: 7.938 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004773/0.4021, allocations: 47.62 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003554/0.4025, allocations: 63.5 kB / 403.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007588/0.4033, allocations: 159.7 kB / 403.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006723/0.404, allocations: 375.6 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003196/0.4043, allocations: 91.38 kB / 404 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004402/0.4048, allocations: 159.5 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.4051, allocations: 167.3 kB / 404.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.504e-05/0.4052, allocations: 36 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.292e-05/0.4053, allocations: 35.94 kB / 404.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.4054, allocations: 103.8 kB / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.4056, allocations: 139.2 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005291/0.4062, allocations: 324.6 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.4062, allocations: 0 / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.801e-06/0.4062, allocations: 0 / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.4062, allocations: 3.938 kB / 405 MB, free: 4.031 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001626/0.4079, allocations: 0.6161 MB / 405.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.4079, allocations: 8.031 kB / 405.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001187/0.4081, allocations: 74.72 kB / 405.7 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.4082, allocations: 36.66 kB / 405.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006352/0.4088, allocations: 276 kB / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/0.4091, allocations: 138.2 kB / 406.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-05/0.4092, allocations: 32.28 kB / 406.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.4105, allocations: 0.5452 MB / 406.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/0.4106, allocations: 3.984 kB / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.752e-05/0.4106, allocations: 12 kB / 406.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.4107, allocations: 8 kB / 406.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.4121, allocations: 0.5035 MB / 407.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.4139, allocations: 1.01 MB / 408.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.4156, allocations: 0.5063 MB / 408.7 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007164/0.4164, allocations: 259.4 kB / 409 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-05/0.4165, allocations: 11.98 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.4165, allocations: 38.5 kB / 409 MB, free: 15.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 4.909e-06/0.4165, allocations: 4 kB / 409 MB, free: 15.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04586/0.4624, allocations: 5.707 MB / 414.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.4626, allocations: 160.9 kB / 414.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/0.463, allocations: 191.1 kB / 415.1 MB, free: 9.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.4631, allocations: 37.7 kB / 415.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.4633, allocations: 141.5 kB / 415.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.4636, allocations: 193.7 kB / 415.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000486/0.4641, allocations: 106.7 kB / 415.6 MB, free: 9.098 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.4644, allocations: 342.8 kB / 415.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/0.4669, allocations: 0.6188 MB / 416.5 MB, free: 8.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002756/0.4697, allocations: 0.8041 MB / 417.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005439/0.4751, allocations: 1.247 MB / 418.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/0.4752, allocations: 3.938 kB / 418.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0072/0.4824, allocations: 1.393 MB / 420 MB, free: 4.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.888e-05/0.4825, allocations: 10.66 kB / 420 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.4826, allocations: 8.281 kB / 420 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.44e-05/0.4826, allocations: 12 kB / 420 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00256/0.4852, allocations: 211.7 kB / 420.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.748e-05/0.4853, allocations: 11.94 kB / 420.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.4871, allocations: 99.95 kB / 420.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/0.4873, allocations: 32 kB / 420.3 MB, free: 4.148 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005213/0.4878, allocations: 181.6 kB / 420.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006768/0.4885, allocations: 165 kB / 420.7 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/0.4888, allocations: 63.3 kB / 420.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.4888, allocations: 8 kB / 420.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.4888, allocations: 4 kB / 420.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/0.4889, allocations: 3.984 kB / 420.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008959/0.4978, allocations: 2.164 MB / 422.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.613e-05/0.4979, allocations: 16 kB / 422.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/0.4994, allocations: 179.7 kB / 423.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-05/0.4994, allocations: 12 kB / 423.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.901e-05/0.4995, allocations: 24 kB / 423.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.19e-05/0.4996, allocations: 27.86 kB / 423.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.111e-05/0.4996, allocations: 15.94 kB / 423.2 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005614/0.5052, allocations: 1.545 MB / 424.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003847/0.5057, allocations: 164.6 kB / 424.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.5058, allocations: 28.19 kB / 424.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.5069, allocations: 79.97 kB / 425 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.5073, allocations: 95.61 kB / 425.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.441e-05/0.5074, allocations: 35.94 kB / 425.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002153/0.5076, allocations: 136.3 kB / 425.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5076, allocations: 0 / 425.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001204/0.5089, allocations: 124 kB / 425.4 MB, free: 14.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006164/0.515, allocations: 2.132 MB / 427.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00532/0.5204, allocations: 1.14 MB / 428.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/0.5205, allocations: 4.312 kB / 428.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/0.5225, allocations: 337.9 kB / 429 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.5241, allocations: 140 kB / 429.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01922/0.5434, allocations: 6.768 MB / 435.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.5438, allocations: 0.8129 MB / 436.7 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004654/0.5443, allocations: 95.77 kB / 436.8 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.5446, allocations: 111.4 kB / 436.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5446, allocations: 4 kB / 436.9 MB, free: 2.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.147/3.692, allocations: 11.54 MB / 448.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.7/23.39, allocations: 12.56 kB / 448.5 MB, free: 7.094 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches