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.0009472/0.0009476, allocations: 96.5 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009943/0.0009945, allocations: 205.5 kB / 18.28 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.7 MB / 246.8 MB, free: 9.723 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 11.98 kB / 307.7 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1101, allocations: 51.52 MB / 359.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002721/0.1129, allocations: 2.015 MB / 361.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.1144, allocations: 0.7873 MB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.1146, allocations: 7.938 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.1149, allocations: 39.77 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.1151, allocations: 43.69 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000502/0.1156, allocations: 151.8 kB / 362.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004369/0.116, allocations: 359.5 kB / 362.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.1162, allocations: 83.23 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.1166, allocations: 131.5 kB / 362.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.1168, allocations: 155.3 kB / 363 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.682e-05/0.1169, allocations: 16 kB / 363 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.299e-05/0.1169, allocations: 16 kB / 363 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.932e-05/0.117, allocations: 79.66 kB / 363.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.1172, allocations: 157 kB / 363.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002895/0.1175, allocations: 299.1 kB / 363.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1175, allocations: 0 / 363.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1175, allocations: 0 / 363.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1175, allocations: 0 / 363.6 MB, free: 8.719 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.001126/0.1187, allocations: 0.5773 MB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1187, allocations: 8.031 kB / 364.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.163e-05/0.1188, allocations: 36.56 kB / 364.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.1192, allocations: 275.8 kB / 364.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002094/0.1194, allocations: 134.2 kB / 364.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.113e-05/0.1195, allocations: 32.38 kB / 364.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.1207, allocations: 0.5687 MB / 365.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.1207, allocations: 0 / 365.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.1207, allocations: 12 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1208, allocations: 4 kB / 365.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001445/0.1222, allocations: 0.5381 MB / 365.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.1238, allocations: 1.017 MB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.1254, allocations: 0.5219 MB / 367.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006424/0.1261, allocations: 274.9 kB / 367.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.256e-05/0.1261, allocations: 4 kB / 367.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.1262, allocations: 46.5 kB / 367.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.844e-06/0.1262, allocations: 0 / 367.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2249/0.3511, allocations: 6.745 MB / 374.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.543e-05/0.3512, allocations: 154.6 kB / 374.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.3514, allocations: 192.4 kB / 374.7 MB, free: 19.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.257e-05/0.3515, allocations: 37.33 kB / 374.7 MB, free: 19.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.604e-05/0.3516, allocations: 137.8 kB / 374.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.3518, allocations: 194.7 kB / 375 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.352, allocations: 62.88 kB / 375.1 MB, free: 19.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.368e-05/0.3521, allocations: 346.5 kB / 375.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/0.3539, allocations: 0.6565 MB / 376.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.3557, allocations: 0.8379 MB / 376.9 MB, free: 18.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003022/0.3587, allocations: 1.323 MB / 378.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3587, allocations: 0.9375 kB / 378.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003654/0.3624, allocations: 1.472 MB / 379.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.3624, allocations: 8.531 kB / 379.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.3624, allocations: 7.406 kB / 379.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.3625, allocations: 9.688 kB / 379.8 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.3638, allocations: 228.7 kB / 380 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.3638, allocations: 10.92 kB / 380 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009877/0.3648, allocations: 124.3 kB / 380.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.472e-05/0.3649, allocations: 32.64 kB / 380.1 MB, free: 17.1 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.0003019/0.3652, allocations: 187.9 kB / 380.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002899/0.3655, allocations: 151.2 kB / 380.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.3657, allocations: 63.3 kB / 380.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.3657, allocations: 8.078 kB / 380.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.3657, allocations: 2.594 kB / 380.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.3657, allocations: 4.875 kB / 380.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004838/0.3706, allocations: 2.292 MB / 382.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.3706, allocations: 10.38 kB / 382.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000757/0.3714, allocations: 203.1 kB / 383 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.05e-05/0.3714, allocations: 19.61 kB / 383.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.141e-05/0.3715, allocations: 28.66 kB / 383.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-05/0.3715, allocations: 19.81 kB / 383.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/0.3715, allocations: 15.41 kB / 383.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003224/0.3747, allocations: 1.679 MB / 384.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.3749, allocations: 165.8 kB / 385 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.262e-05/0.375, allocations: 29.36 kB / 385 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.3756, allocations: 96.44 kB / 385.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.3758, allocations: 98.75 kB / 385.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-05/0.3759, allocations: 30.22 kB / 385.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.376, allocations: 149.1 kB / 385.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.376, allocations: 3.5 kB / 385.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007351/0.3768, allocations: 118.5 kB / 385.5 MB, free: 14.31 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.0001617/0.3769, allocations: 137.9 kB / 385.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002988/0.3799, allocations: 1.193 MB / 386.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.38, allocations: 2.031 kB / 386.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.381, allocations: 377.2 kB / 387.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009712/0.382, allocations: 138 kB / 387.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.3842, allocations: 1.367 MB / 388.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.3845, allocations: 0.812 MB / 389.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005686/0.385, allocations: 94.52 kB / 389.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002746/0.3853, allocations: 40.53 kB / 389.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3853, allocations: 0 / 389.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01057/0.3959, allocations: 7.464 MB / 397.1 MB, free: 7.289 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches