Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00099/0.0009901, allocations: 195.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009738/0.0009739, allocations: 108.4 kB / 296.8 MB, free: 6.859 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.0002467, allocations: 4 kB / 356.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2914, allocations: 51.3 MB / 408 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002071/0.2935, allocations: 1.957 MB / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2946, allocations: 0.74 MB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.2948, allocations: 9.25 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.295, allocations: 39.77 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.2952, allocations: 41.16 kB / 410.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.2957, allocations: 134.9 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.2959, allocations: 340.2 kB / 411.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.2961, allocations: 86.8 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.2964, allocations: 131.5 kB / 411.5 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.2966, allocations: 147.4 kB / 411.6 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.984e-05/0.2966, allocations: 16 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.024e-05/0.2967, allocations: 16 kB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-05/0.2968, allocations: 67.78 kB / 411.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.2969, allocations: 153.1 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.2971, allocations: 220.4 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2971, allocations: 3.281 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2971, allocations: 3.938 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.2971, allocations: 0 / 412.1 MB, free: 23.59 MB / 298.7 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.001007/0.2981, allocations: 0.5749 MB / 412.7 MB, free: 22.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.2981, allocations: 8.031 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.149e-05/0.2982, allocations: 44.5 kB / 412.7 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.2985, allocations: 274 kB / 413 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.2987, allocations: 142.2 kB / 413.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.2987, allocations: 28.38 kB / 413.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.2998, allocations: 0.5569 MB / 413.7 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.2998, allocations: 11.89 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.2998, allocations: 12 kB / 413.7 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.2998, allocations: 8 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.301, allocations: 0.5269 MB / 414.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.3023, allocations: 1.037 MB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3036, allocations: 0.5102 MB / 415.8 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/0.3041, allocations: 267.4 kB / 416.1 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.213e-05/0.3042, allocations: 11.98 kB / 416.1 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.3042, allocations: 42.5 kB / 416.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.285e-06/0.3043, allocations: 0 / 416.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03456/0.3388, allocations: 6.735 MB / 422.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.339, allocations: 156.9 kB / 423 MB, free: 12.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.3392, allocations: 187.1 kB / 423.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.914e-05/0.3392, allocations: 41.7 kB / 423.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.3393, allocations: 137.5 kB / 423.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.3394, allocations: 193.3 kB / 423.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.127e-05/0.3395, allocations: 16 kB / 423.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.353e-05/0.3396, allocations: 346.8 kB / 423.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.341, allocations: 0.65 MB / 424.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.3424, allocations: 0.8315 MB / 425.4 MB, free: 9.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002518/0.3449, allocations: 1.322 MB / 426.7 MB, free: 8.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.3449, allocations: 0 / 426.7 MB, free: 8.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003003/0.3479, allocations: 1.468 MB / 428.2 MB, free: 7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.348, allocations: 12.31 kB / 428.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.348, allocations: 4 kB / 428.2 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.348, allocations: 8 kB / 428.2 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.3493, allocations: 235.7 kB / 428.5 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/0.3493, allocations: 16.19 kB / 428.5 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008567/0.3502, allocations: 123.7 kB / 428.6 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.75e-05/0.3502, allocations: 35.94 kB / 428.6 MB, free: 6.574 MB / 298.7 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.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 initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002909/0.3505, allocations: 186.6 kB / 428.8 MB, free: 6.383 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002657/0.3508, allocations: 157.2 kB / 429 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001737/0.351, allocations: 63.3 kB / 429 MB, free: 6.164 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.351, allocations: 8 kB / 429 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.351, allocations: 0 / 429 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.351, allocations: 7.984 kB / 429 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003972/0.355, allocations: 2.285 MB / 431.3 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.355, allocations: 12 kB / 431.3 MB, free: 3.664 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006846/0.3557, allocations: 199.9 kB / 431.5 MB, free: 3.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/0.3558, allocations: 16 kB / 431.6 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.606e-05/0.3558, allocations: 24 kB / 431.6 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-05/0.3558, allocations: 23.92 kB / 431.6 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.3558, allocations: 19.88 kB / 431.6 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.3585, allocations: 1.662 MB / 433.3 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.3587, allocations: 160.7 kB / 433.4 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.229e-05/0.3587, allocations: 32 kB / 433.5 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/0.3593, allocations: 95.97 kB / 433.6 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.3595, allocations: 103.6 kB / 433.7 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-05/0.3595, allocations: 32 kB / 433.7 MB, free: 1.145 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001105/0.3596, allocations: 147.1 kB / 433.8 MB, free: 1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.3596, allocations: 4 kB / 433.8 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006296/0.3603, allocations: 123.9 kB / 434 MB, free: 0.875 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001586/0.3604, allocations: 134.8 kB / 434.1 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.3631, allocations: 1.194 MB / 435.3 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.3631, allocations: 5.375 kB / 435.3 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009998/0.3641, allocations: 377.8 kB / 435.7 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.3652, allocations: 142.4 kB / 435.8 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3676, allocations: 1.362 MB / 437.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.368, allocations: 0.8093 MB / 438 MB, free: 12.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.3684, allocations: 47.42 kB / 438 MB, free: 12.6 MB / 314.7 MB Notification: Performance of SimCode: time 1.153e-06/0.3684, allocations: 0 / 438 MB, free: 12.6 MB / 314.7 MB Notification: Performance of Templates: time 0.01033/0.3787, allocations: 7.061 MB / 445.1 MB, free: 5.543 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches