Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",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.001849/0.001849, allocations: 111.8 kB / 17.06 MB, free: 6.004 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.002357/0.002358, allocations: 198.9 kB / 18 MB, free: 5.082 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.927/2.927, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 39.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7716/0.7733, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.007339/0.7807, allocations: 2.147 MB / 402.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.7832, allocations: 0.647 MB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002854/0.7835, allocations: 4 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004421/0.7841, allocations: 47.64 kB / 403.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.7844, allocations: 47.62 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006446/0.785, allocations: 123.8 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006143/0.7857, allocations: 347.2 kB / 403.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003088/0.786, allocations: 60.36 kB / 403.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000366/0.7864, allocations: 147.5 kB / 403.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004624/0.7869, allocations: 151.4 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.735e-05/0.787, allocations: 32 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.208e-05/0.7871, allocations: 32 kB / 404 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.7873, allocations: 87.73 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.7875, allocations: 127.4 kB / 404.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008262/0.7883, allocations: 284.7 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.7884, allocations: 0 / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.7884, allocations: 0 / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.7884, allocations: 0 / 404.5 MB, free: 4.555 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001798/0.7902, allocations: 0.5729 MB / 405 MB, free: 3.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.88e-05/0.7903, allocations: 8.031 kB / 405 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.7904, allocations: 62.73 kB / 405.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.7906, allocations: 36.56 kB / 405.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007833/0.7914, allocations: 254.1 kB / 405.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003918/0.7918, allocations: 137.9 kB / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.846e-05/0.7919, allocations: 31.89 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.7934, allocations: 363.6 kB / 405.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.7935, allocations: 8 kB / 405.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.7935, allocations: 12 kB / 405.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.7935, allocations: 4 kB / 405.9 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002136/0.7957, allocations: 497.8 kB / 406.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003692/0.7994, allocations: 0.9955 MB / 407.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002872/0.8024, allocations: 347 kB / 407.8 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009054/0.8033, allocations: 173.9 kB / 407.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.273e-05/0.8034, allocations: 8.172 kB / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/0.8035, allocations: 34.8 kB / 408 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 4.168e-06/0.8035, allocations: 0 / 408 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.05763/0.8611, allocations: 5.808 MB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.8613, allocations: 63.83 kB / 413.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00049/0.8618, allocations: 210.5 kB / 414 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.862, allocations: 33.7 kB / 414.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.8622, allocations: 144.7 kB / 414.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/0.8626, allocations: 177.4 kB / 414.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004514/0.8631, allocations: 90.17 kB / 414.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003314/0.8634, allocations: 338.8 kB / 414.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002249/0.8657, allocations: 464.8 kB / 415.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004238/0.8699, allocations: 0.5216 MB / 415.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004438/0.8744, allocations: 0.8032 MB / 416.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.8745, allocations: 0 / 416.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004865/0.8794, allocations: 0.9865 MB / 417.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.014e-05/0.8795, allocations: 7.938 kB / 417.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.8795, allocations: 0 / 417.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.398e-05/0.8796, allocations: 4.125 kB / 417.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.8811, allocations: 171.8 kB / 417.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.62e-05/0.8812, allocations: 4 kB / 417.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.8823, allocations: 79.89 kB / 417.8 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.8825, allocations: 16 kB / 417.8 MB, free: 6.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0004374/0.8829, allocations: 169.7 kB / 418 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.8831, allocations: 27.66 kB / 418 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002299/0.8834, allocations: 51.3 kB / 418.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.8834, allocations: 4 kB / 418.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.8834, allocations: 0 / 418.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.8835, allocations: 0 / 418.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008627/0.8921, allocations: 1.87 MB / 420 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.898e-05/0.8923, allocations: 12.22 kB / 420 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.8935, allocations: 147.7 kB / 420.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.964e-05/0.8936, allocations: 19.92 kB / 420.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.681e-05/0.8937, allocations: 23.94 kB / 420.2 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.814e-05/0.8937, allocations: 15.94 kB / 420.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/0.8938, allocations: 8 kB / 420.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004929/0.8987, allocations: 1.225 MB / 421.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.8991, allocations: 152.8 kB / 421.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.83e-05/0.8992, allocations: 16 kB / 421.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008891/0.9001, allocations: 71.92 kB / 421.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.9005, allocations: 87.72 kB / 421.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.739e-05/0.9006, allocations: 24 kB / 421.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002759/0.9009, allocations: 148.2 kB / 421.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9009, allocations: 0 / 421.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009373/0.9018, allocations: 92 kB / 422 MB, free: 2.301 MB / 334.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.005269/0.9071, allocations: 1.793 MB / 423.8 MB, free: 384 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004221/0.9114, allocations: 0.8673 MB / 424.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.682e-05/0.9115, allocations: 4 kB / 424.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002098/0.9136, allocations: 329.3 kB / 425 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.915, allocations: 56.16 kB / 425 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/0.9335, allocations: 5.229 MB / 430.3 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009067/0.9345, allocations: 0.784 MB / 431 MB, free: 8.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009787/0.9355, allocations: 83.19 kB / 431.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005536/0.9361, allocations: 95.41 kB / 431.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of SimCode: time 9.518e-06/0.9482, allocations: 0 / 431.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1842/1.132, allocations: 8.547 MB / 439.8 MB, free: 188 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.48/20.62, allocations: 14.08 kB / 439.8 MB, free: 180 kB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,angle.flange.phi,angle.flange.tau,angle.phi,der(PI.x),der(load.w),der(speed.flange.phi),feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport