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.000885/0.000885, allocations: 94.95 kB / 17.31 MB, free: 5.941 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.0009655/0.0009656, allocations: 180.3 kB / 18.21 MB, free: 5.418 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.263/1.263, allocations: 223.3 MB / 242.3 MB, free: 8 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002224/0.0002224, allocations: 7.938 kB / 302.1 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07205/0.07229, allocations: 50.42 MB / 352.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002168/0.07447, allocations: 1.998 MB / 354.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.07565, allocations: 0.76 MB / 355.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.07579, allocations: 0 / 355.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002041/0.076, allocations: 39.77 kB / 355.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.07618, allocations: 47.69 kB / 355.3 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.07661, allocations: 147.7 kB / 355.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003317/0.07695, allocations: 355.6 kB / 355.8 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.07712, allocations: 89.92 kB / 355.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001861/0.07731, allocations: 131.4 kB / 356 MB, free: 108 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.07753, allocations: 155.3 kB / 356.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.216e-05/0.07759, allocations: 16 kB / 356.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.735e-05/0.07763, allocations: 16 kB / 356.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.757e-05/0.07772, allocations: 75.77 kB / 356.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.07785, allocations: 157 kB / 356.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.07806, allocations: 227.7 kB / 356.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.07807, allocations: 0 / 356.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.07808, allocations: 0 / 356.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.07809, allocations: 0 / 356.7 MB, free: 15.46 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.00104/0.07913, allocations: 0.5773 MB / 357.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.07917, allocations: 12.03 kB / 357.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.636e-05/0.07925, allocations: 40.55 kB / 357.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.07955, allocations: 264.4 kB / 357.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.07975, allocations: 138.2 kB / 357.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.81e-05/0.07982, allocations: 32.36 kB / 357.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.08098, allocations: 0.5686 MB / 358.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.08101, allocations: 4 kB / 358.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.597e-05/0.08105, allocations: 12 kB / 358.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.08107, allocations: 8 kB / 358.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.0825, allocations: 0.5386 MB / 358.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.08393, allocations: 1.018 MB / 359.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.08556, allocations: 0.5063 MB / 360.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006693/0.08624, allocations: 279.3 kB / 360.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.08629, allocations: 8.141 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.08632, allocations: 42.55 kB / 360.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.653e-06/0.08633, allocations: 4 kB / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04342/0.1298, allocations: 6.747 MB / 367.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.1298, allocations: 148.9 kB / 367.6 MB, free: 4.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.13, allocations: 203.1 kB / 367.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.243e-05/0.1301, allocations: 37.7 kB / 367.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.6e-05/0.1302, allocations: 145.5 kB / 368 MB, free: 3.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.1304, allocations: 189.3 kB / 368.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.1305, allocations: 57.69 kB / 368.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1306, allocations: 342.8 kB / 368.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.1324, allocations: 0.6539 MB / 369.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001801/0.1342, allocations: 0.8277 MB / 370 MB, free: 1.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003313/0.1375, allocations: 1.333 MB / 371.4 MB, free: 276 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1375, allocations: 0 / 371.4 MB, free: 276 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1363/0.2738, allocations: 1.468 MB / 372.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.2739, allocations: 6.781 kB / 372.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.2739, allocations: 5.688 kB / 372.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.2739, allocations: 10.02 kB / 372.9 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/0.2754, allocations: 235 kB / 373.1 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.2754, allocations: 10.06 kB / 373.1 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.2765, allocations: 131.1 kB / 373.2 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.788e-05/0.2766, allocations: 26.56 kB / 373.2 MB, free: 25.45 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.0002736/0.2768, allocations: 185.4 kB / 373.4 MB, free: 25.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002826/0.2771, allocations: 148.9 kB / 373.6 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.2773, allocations: 66.02 kB / 373.6 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.2773, allocations: 7.812 kB / 373.6 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.2773, allocations: 5.031 kB / 373.6 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.2774, allocations: 5.453 kB / 373.7 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004939/0.2823, allocations: 2.296 MB / 376 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.2823, allocations: 14.39 kB / 376 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007973/0.2831, allocations: 199.1 kB / 376.2 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.546e-05/0.2832, allocations: 18.16 kB / 376.2 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.2832, allocations: 24.33 kB / 376.2 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.541e-05/0.2832, allocations: 27.48 kB / 376.2 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.2833, allocations: 16.25 kB / 376.2 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003177/0.2864, allocations: 1.658 MB / 377.9 MB, free: 23.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.2866, allocations: 165.7 kB / 378.1 MB, free: 23.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/0.2867, allocations: 28.92 kB / 378.1 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006603/0.2873, allocations: 99.88 kB / 378.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.2875, allocations: 91.06 kB / 378.3 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.846e-05/0.2876, allocations: 34.73 kB / 378.3 MB, free: 23.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.2877, allocations: 145.2 kB / 378.5 MB, free: 23.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.2877, allocations: 0 / 378.5 MB, free: 23.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000657/0.2884, allocations: 125.9 kB / 378.6 MB, free: 23.16 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.0001172/0.2885, allocations: 131.1 kB / 378.7 MB, free: 23.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002881/0.2914, allocations: 1.189 MB / 379.9 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.2914, allocations: 5.938 kB / 379.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.2925, allocations: 377.7 kB / 380.3 MB, free: 22.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.2935, allocations: 144.3 kB / 380.4 MB, free: 22.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.2957, allocations: 1.396 MB / 381.8 MB, free: 21.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.2959, allocations: 0.8132 MB / 382.6 MB, free: 20.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.2963, allocations: 40.47 kB / 382.7 MB, free: 20.71 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2963, allocations: 1.219 kB / 382.7 MB, free: 20.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01/0.3063, allocations: 7.088 MB / 389.7 MB, free: 17.92 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 -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