Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001081/0.00108, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 60.28 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09903, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00362/0.1027, allocations: 2.327 MB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.1042, allocations: 0.8027 MB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.1044, allocations: 7.938 kB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002675/0.1047, allocations: 55.62 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.1049, allocations: 59.48 kB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.1054, allocations: 167.6 kB / 362.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004069/0.1058, allocations: 375.6 kB / 362.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.106, allocations: 99.31 kB / 362.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.1062, allocations: 163.5 kB / 362.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.1064, allocations: 175.3 kB / 363.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.1065, allocations: 32 kB / 363.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.371e-05/0.1066, allocations: 32 kB / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1067, allocations: 99.7 kB / 363.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1068, allocations: 139.2 kB / 363.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.1071, allocations: 326.8 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1071, allocations: 0 / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1071, allocations: 0 / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1071, allocations: 0 / 363.7 MB, free: 8.48 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.00114/0.1083, allocations: 0.6239 MB / 364.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1083, allocations: 8.031 kB / 364.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/0.1084, allocations: 36.56 kB / 364.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004076/0.1088, allocations: 268.4 kB / 364.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.109, allocations: 138.2 kB / 364.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.22e-05/0.1091, allocations: 24.38 kB / 364.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.1101, allocations: 0.5523 MB / 365.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1101, allocations: 7.922 kB / 365.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.1102, allocations: 16 kB / 365.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1102, allocations: 8 kB / 365.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.1114, allocations: 0.4996 MB / 365.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.1128, allocations: 1.01 MB / 366.9 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.1142, allocations: 0.5063 MB / 367.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005598/0.1148, allocations: 255.5 kB / 367.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.739e-05/0.1149, allocations: 11.97 kB / 367.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.1149, allocations: 42.56 kB / 367.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.603e-06/0.1149, allocations: 3.938 kB / 367.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2269/0.3418, allocations: 5.705 MB / 373.4 MB, free: 20.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.342, allocations: 156.9 kB / 373.6 MB, free: 20.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.3423, allocations: 198.8 kB / 373.8 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.3424, allocations: 36.23 kB / 373.8 MB, free: 20.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.789e-05/0.3425, allocations: 138 kB / 373.9 MB, free: 20.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.3427, allocations: 190.3 kB / 374.1 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.343, allocations: 111.3 kB / 374.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.304e-05/0.3431, allocations: 340.2 kB / 374.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.3447, allocations: 0.6233 MB / 375.2 MB, free: 19.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.3464, allocations: 0.7939 MB / 376 MB, free: 19.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002742/0.3491, allocations: 1.25 MB / 377.2 MB, free: 18.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.3492, allocations: 1.562 kB / 377.2 MB, free: 18.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003901/0.3531, allocations: 1.392 MB / 378.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.3531, allocations: 6.906 kB / 378.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.3531, allocations: 9.719 kB / 378.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.515e-05/0.3532, allocations: 9.344 kB / 378.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.3545, allocations: 212.6 kB / 378.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-05/0.3546, allocations: 9.906 kB / 378.9 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009631/0.3555, allocations: 103.4 kB / 379 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.632e-05/0.3556, allocations: 26.56 kB / 379 MB, free: 17.77 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.0003196/0.356, allocations: 192.3 kB / 379.2 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003138/0.3563, allocations: 156.9 kB / 379.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/0.3565, allocations: 62.41 kB / 379.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.3565, allocations: 8.406 kB / 379.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.3565, allocations: 3.406 kB / 379.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.3565, allocations: 6.297 kB / 379.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004552/0.3611, allocations: 2.166 MB / 381.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/0.3611, allocations: 9.625 kB / 381.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007465/0.3618, allocations: 186.6 kB / 381.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.997e-05/0.3619, allocations: 15.05 kB / 381.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.785e-05/0.3619, allocations: 27.83 kB / 381.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.947e-05/0.362, allocations: 19.58 kB / 381.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.998e-06/0.362, allocations: 16.12 kB / 381.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.3648, allocations: 1.557 MB / 383.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.365, allocations: 160.5 kB / 383.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.749e-05/0.3651, allocations: 35.59 kB / 383.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/0.3657, allocations: 73.56 kB / 383.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/0.3659, allocations: 96.25 kB / 383.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.529e-05/0.366, allocations: 30.61 kB / 383.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000122/0.3661, allocations: 146.2 kB / 383.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3661, allocations: 0 / 383.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007502/0.3669, allocations: 121.6 kB / 384 MB, free: 15.03 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.0001698/0.3671, allocations: 133.4 kB / 384.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.3698, allocations: 1.136 MB / 385.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/0.3699, allocations: 6.625 kB / 385.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009411/0.3708, allocations: 340.9 kB / 385.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008751/0.3717, allocations: 140.9 kB / 385.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/0.3738, allocations: 1.159 MB / 386.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.3741, allocations: 0.8144 MB / 387.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005049/0.3746, allocations: 95.47 kB / 387.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003042/0.3749, allocations: 41.92 kB / 387.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.375, allocations: 4 kB / 387.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01297/0.3879, allocations: 8.143 MB / 396 MB, free: 8.879 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches