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.001349/0.001349, allocations: 114.2 kB / 17.07 MB, free: 5.988 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.001303/0.001303, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 51.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2838, allocations: 49.42 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004325/0.2882, allocations: 2.147 MB / 402.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.2896, allocations: 0.6509 MB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.2899, allocations: 4 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.2902, allocations: 47.62 kB / 403.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.2905, allocations: 51.58 kB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.291, allocations: 119.8 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004995/0.2915, allocations: 347.1 kB / 403.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.2917, allocations: 64.38 kB / 403.6 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/0.292, allocations: 143.5 kB / 403.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.2923, allocations: 151.4 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.082e-05/0.2923, allocations: 32 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.84e-05/0.2924, allocations: 28 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.2925, allocations: 91.73 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.2927, allocations: 123.4 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004754/0.2932, allocations: 285.8 kB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2932, allocations: 4 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2932, allocations: 0 / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.2932, 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.001347/0.2945, allocations: 0.5726 MB / 405 MB, free: 3.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.2946, allocations: 12.03 kB / 405 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.393e-05/0.2947, allocations: 66.72 kB / 405.1 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.868e-05/0.2948, allocations: 36.75 kB / 405.1 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000445/0.2952, allocations: 252.4 kB / 405.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002328/0.2955, allocations: 138 kB / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-05/0.2956, allocations: 27.98 kB / 405.6 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000959/0.2965, allocations: 367.6 kB / 405.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.2966, allocations: 0 / 405.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.2966, allocations: 8 kB / 405.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2966, allocations: 12 kB / 405.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.2981, allocations: 0.49 MB / 406.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.3001, allocations: 0.9996 MB / 407.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.3014, allocations: 335.1 kB / 407.8 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005548/0.302, allocations: 173.9 kB / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.143e-05/0.302, allocations: 4.234 kB / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.3021, allocations: 42.78 kB / 408 MB, free: 0.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 1.944e-06/0.3021, allocations: 0 / 408 MB, free: 0.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.03036/0.3325, allocations: 5.813 MB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.3326, allocations: 55.84 kB / 413.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003844/0.333, allocations: 214.5 kB / 414 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.97e-05/0.3331, allocations: 33.7 kB / 414.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.3332, allocations: 153 kB / 414.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.3334, allocations: 190.4 kB / 414.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002618/0.3337, allocations: 90.25 kB / 414.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.3339, allocations: 334.8 kB / 414.8 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001495/0.3354, allocations: 468.8 kB / 415.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001601/0.337, allocations: 0.5177 MB / 415.8 MB, free: 8.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002712/0.3398, allocations: 0.7993 MB / 416.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3398, allocations: 4 kB / 416.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003256/0.343, allocations: 0.9906 MB / 417.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.3431, allocations: 7.938 kB / 417.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.3431, allocations: 4 kB / 417.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.3432, allocations: 4 kB / 417.6 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.3442, allocations: 167.8 kB / 417.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-05/0.3443, allocations: 4 kB / 417.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008109/0.3451, allocations: 87.88 kB / 417.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.916e-05/0.3452, allocations: 16 kB / 417.9 MB, free: 6.738 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.0003191/0.3455, allocations: 157.8 kB / 418 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.3456, allocations: 39.75 kB / 418.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001474/0.3458, allocations: 47.31 kB / 418.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.3458, allocations: 8 kB / 418.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.3458, allocations: 0 / 418.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.3458, allocations: 7.922 kB / 418.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005213/0.3511, allocations: 1.87 MB / 420 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/0.3511, allocations: 8.938 kB / 420 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.3519, allocations: 143.8 kB / 420.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.486e-05/0.3519, allocations: 11.94 kB / 420.2 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.3519, allocations: 27.94 kB / 420.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.632e-05/0.352, allocations: 15.92 kB / 420.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.467e-05/0.352, allocations: 15.94 kB / 420.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003248/0.3552, allocations: 1.217 MB / 421.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.3555, allocations: 152.8 kB / 421.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.402e-05/0.3556, allocations: 19.98 kB / 421.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005605/0.3561, allocations: 75.86 kB / 421.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.3563, allocations: 83.67 kB / 421.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.585e-05/0.3564, allocations: 28 kB / 421.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.3566, allocations: 144.3 kB / 421.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3566, allocations: 0 / 421.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005652/0.3572, allocations: 100 kB / 422 MB, free: 2.262 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.003529/0.3607, allocations: 1.783 MB / 423.8 MB, free: 356 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002661/0.3634, allocations: 0.8727 MB / 424.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.3634, allocations: 0 / 424.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.3645, allocations: 321.8 kB / 425 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.3652, allocations: 55.06 kB / 425.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.3772, allocations: 5.257 MB / 430.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004735/0.3777, allocations: 0.7801 MB / 431.1 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004308/0.3782, allocations: 83.19 kB / 431.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003082/0.3785, allocations: 95.41 kB / 431.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3785, allocations: 0 / 431.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.4136, allocations: 8.341 MB / 439.6 MB, free: 360 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.936/9.35, allocations: 3.984 kB / 439.6 MB, free: 356 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