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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.94 kB / 366.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1273, allocations: 52.14 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004206/0.1315, allocations: 2.332 MB / 420.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.1332, allocations: 0.7794 MB / 421.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.1333, allocations: 7.938 kB / 421.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003686/0.1337, allocations: 51.56 kB / 421.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.1339, allocations: 51.58 kB / 421.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005172/0.1344, allocations: 171.6 kB / 421.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005128/0.1349, allocations: 379.5 kB / 422.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.1351, allocations: 63.41 kB / 422.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002712/0.1354, allocations: 163.5 kB / 422.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.1357, allocations: 179.3 kB / 422.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.97e-05/0.1358, allocations: 32 kB / 422.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.429e-05/0.1358, allocations: 36 kB / 422.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.1359, allocations: 99.7 kB / 422.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.1361, allocations: 143.2 kB / 422.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.1366, allocations: 322.6 kB / 423.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1366, allocations: 4 kB / 423.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1366, allocations: 3.938 kB / 423.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1366, allocations: 0 / 423.2 MB, free: 7.832 MB / 350.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.00139/0.138, allocations: 0.6159 MB / 423.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.138, allocations: 8.031 kB / 423.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.629e-05/0.1381, allocations: 12.75 kB / 423.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.385e-05/0.1382, allocations: 82.66 kB / 424 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.215e-05/0.1382, allocations: 40.69 kB / 424 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/0.1387, allocations: 264.5 kB / 424.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/0.1389, allocations: 134.2 kB / 424.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.595e-05/0.139, allocations: 32.12 kB / 424.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.1402, allocations: 0.5424 MB / 425 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.1402, allocations: 15.92 kB / 425 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.1402, allocations: 8 kB / 425 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1403, allocations: 8 kB / 425 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.1417, allocations: 0.5113 MB / 425.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.1434, allocations: 1.018 MB / 426.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.1451, allocations: 482.4 kB / 427 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006686/0.1458, allocations: 239.4 kB / 427.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.559e-05/0.1458, allocations: 8.141 kB / 427.2 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.1459, allocations: 38.56 kB / 427.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.597e-06/0.1459, allocations: 7.938 kB / 427.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03927/0.1851, allocations: 5.717 MB / 433 MB, free: 13.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001603/0.1853, allocations: 144.9 kB / 433.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/0.1856, allocations: 199.2 kB / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.04e-05/0.1857, allocations: 37.7 kB / 433.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.1858, allocations: 141.7 kB / 433.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000231/0.1861, allocations: 202.3 kB / 433.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003286/0.1864, allocations: 110.6 kB / 433.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002711/0.1867, allocations: 350.8 kB / 434.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.1883, allocations: 0.611 MB / 434.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001916/0.1903, allocations: 0.8002 MB / 435.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003381/0.1936, allocations: 1.243 MB / 436.8 MB, free: 9.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.1936, allocations: 4 kB / 436.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003768/0.1974, allocations: 1.394 MB / 438.2 MB, free: 8.344 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.1974, allocations: 12.41 kB / 438.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.1975, allocations: 8 kB / 438.2 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.812e-05/0.1975, allocations: 8 kB / 438.2 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.1989, allocations: 207.6 kB / 438.4 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.931e-05/0.1989, allocations: 23.86 kB / 438.5 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009282/0.1998, allocations: 103.8 kB / 438.6 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.097e-05/0.1999, allocations: 24 kB / 438.6 MB, free: 7.965 MB / 366.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.0003639/0.2003, allocations: 186.3 kB / 438.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000339/0.2006, allocations: 153.4 kB / 438.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.2008, allocations: 63.3 kB / 439 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.2008, allocations: 8 kB / 439 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.2008, allocations: 4 kB / 439 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.2009, allocations: 7.984 kB / 439 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005299/0.2062, allocations: 2.164 MB / 441.2 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.2062, allocations: 12 kB / 441.2 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000776/0.2069, allocations: 183.7 kB / 441.4 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.801e-05/0.207, allocations: 12 kB / 441.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-05/0.207, allocations: 28 kB / 441.4 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.862e-05/0.207, allocations: 20.27 kB / 441.4 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.411e-05/0.2071, allocations: 19.94 kB / 441.4 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003527/0.2106, allocations: 1.561 MB / 443 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.2108, allocations: 168.8 kB / 443.2 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.061e-05/0.2109, allocations: 28.05 kB / 443.2 MB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006022/0.2115, allocations: 71.92 kB / 443.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.2117, allocations: 99.61 kB / 443.4 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-05/0.2118, allocations: 35.98 kB / 443.4 MB, free: 2.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001703/0.2119, allocations: 136.3 kB / 443.5 MB, free: 2.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2119, allocations: 0 / 443.5 MB, free: 2.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007107/0.2126, allocations: 124 kB / 443.6 MB, free: 2.539 MB / 366.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.003981/0.2166, allocations: 2.139 MB / 445.8 MB, free: 248 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.232/0.4487, allocations: 1.027 MB / 446.8 MB, free: 31.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/0.4487, allocations: 0 / 446.8 MB, free: 31.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.4497, allocations: 331.2 kB / 447.1 MB, free: 31.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009824/0.4507, allocations: 133 kB / 447.3 MB, free: 31.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/0.4639, allocations: 6.771 MB / 454 MB, free: 28.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.4643, allocations: 0.8124 MB / 454.8 MB, free: 27.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000564/0.4649, allocations: 99.2 kB / 454.9 MB, free: 27.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004187/0.4653, allocations: 114.4 kB / 455.1 MB, free: 27.43 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4653, allocations: 3.047 kB / 455.1 MB, free: 27.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.4992, allocations: 11.32 MB / 466.4 MB, free: 24.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.761/9.26, allocations: 18.67 kB / 466.4 MB, free: 24.57 MB / 366.1 MB " [Timeout remaining time 651] (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 --stepSize=0.000499563 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,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,hold1.u,hold1.y,hold1.y_start,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,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 12.051334557996597]