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: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001234/0.001234, allocations: 192 kB / 18.62 MB, free: 4.434 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.41/1.41, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009887/0.0009888, allocations: 48.33 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1168, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004477/0.1214, allocations: 2.309 MB / 353.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.1232, allocations: 0.7754 MB / 354.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003535/0.1236, allocations: 4 kB / 354.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004674/0.1241, allocations: 47.56 kB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002831/0.1244, allocations: 63.56 kB / 354.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006789/0.1251, allocations: 167.2 kB / 354.8 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004503/0.1256, allocations: 371.7 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.1258, allocations: 95.23 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.1261, allocations: 167.3 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.1263, allocations: 171.3 kB / 355.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.159e-05/0.1264, allocations: 32 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.833e-05/0.1264, allocations: 36 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.1266, allocations: 91.77 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.1267, allocations: 143.2 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.1271, allocations: 322.8 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1271, allocations: 0 / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.629e-06/0.1271, allocations: 0 / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1272, allocations: 3.938 kB / 356.2 MB, free: 14.91 MB / 302.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.001296/0.1285, allocations: 0.6123 MB / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1285, allocations: 15.89 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.1286, allocations: 40.56 kB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004723/0.1291, allocations: 272.3 kB / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.1293, allocations: 134.2 kB / 357.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.328e-05/0.1294, allocations: 28.38 kB / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.1307, allocations: 0.5604 MB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.1307, allocations: 4 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.751e-05/0.1308, allocations: 16 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.1308, allocations: 8 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.132, allocations: 0.5039 MB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.1337, allocations: 0.9983 MB / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.1354, allocations: 0.5141 MB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005993/0.136, allocations: 267.3 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.736e-05/0.1361, allocations: 11.98 kB / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.1362, allocations: 34.56 kB / 360.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.355e-06/0.1362, allocations: 0 / 360.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03646/0.1726, allocations: 5.699 MB / 365.9 MB, free: 4.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.1728, allocations: 152.9 kB / 366.1 MB, free: 4.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.173, allocations: 199 kB / 366.3 MB, free: 4.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.857e-05/0.1731, allocations: 41.64 kB / 366.3 MB, free: 4.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.1732, allocations: 141.5 kB / 366.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.1734, allocations: 189.3 kB / 366.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.1737, allocations: 110.6 kB / 366.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1739, allocations: 346.8 kB / 367.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.1754, allocations: 0.611 MB / 367.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.177, allocations: 0.8003 MB / 368.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002842/0.1798, allocations: 1.243 MB / 369.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.1799, allocations: 4 kB / 369.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1882/0.3681, allocations: 1.388 MB / 371.2 MB, free: 26.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/0.3682, allocations: 8.469 kB / 371.2 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.376e-05/0.3682, allocations: 7.312 kB / 371.2 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/0.3683, allocations: 12.77 kB / 371.2 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.3696, allocations: 211.9 kB / 371.4 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.173e-05/0.3696, allocations: 16.91 kB / 371.4 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009173/0.3706, allocations: 99.05 kB / 371.5 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.485e-05/0.3707, allocations: 29.83 kB / 371.5 MB, free: 26.03 MB / 302.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.0002774/0.3709, allocations: 190.1 kB / 371.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002997/0.3712, allocations: 150.6 kB / 371.9 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.3714, allocations: 62.22 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.3714, allocations: 8.875 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.3714, allocations: 1.312 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.3715, allocations: 5.812 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004709/0.3762, allocations: 2.165 MB / 374.1 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/0.3762, allocations: 11.56 kB / 374.1 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007252/0.3769, allocations: 187.9 kB / 374.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.519e-05/0.377, allocations: 14.34 kB / 374.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.77e-05/0.377, allocations: 24.34 kB / 374.3 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.497e-05/0.377, allocations: 19.94 kB / 374.4 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.908e-06/0.3771, allocations: 14.94 kB / 374.4 MB, free: 24.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.3798, allocations: 1.566 MB / 375.9 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.3801, allocations: 162.2 kB / 376.1 MB, free: 23.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.236e-05/0.3801, allocations: 25.56 kB / 376.1 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.3807, allocations: 81.67 kB / 376.2 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.3809, allocations: 97.16 kB / 376.3 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.381, allocations: 36.22 kB / 376.3 MB, free: 23.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001457/0.3811, allocations: 137.2 kB / 376.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3811, allocations: 0 / 376.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000762/0.3819, allocations: 122.4 kB / 376.6 MB, free: 23.75 MB / 302.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.0001566/0.382, allocations: 135.6 kB / 376.7 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002731/0.3848, allocations: 1.144 MB / 377.9 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.3848, allocations: 2.781 kB / 377.9 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009405/0.3858, allocations: 344.2 kB / 378.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008119/0.3866, allocations: 129.7 kB / 378.3 MB, free: 23.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.3886, allocations: 1.167 MB / 379.5 MB, free: 22.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.3889, allocations: 0.814 MB / 380.3 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004407/0.3894, allocations: 99.64 kB / 380.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002699/0.3897, allocations: 43.08 kB / 380.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3897, allocations: 0 / 380.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01203/0.4017, allocations: 8.146 MB / 388.6 MB, free: 18.47 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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