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.001275/0.001275, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.315, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00422/0.3192, allocations: 2.334 MB / 411.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.3209, allocations: 0.8027 MB / 412.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.3211, allocations: 11.94 kB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003381/0.3214, allocations: 51.56 kB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.3216, allocations: 51.58 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.3221, allocations: 171.6 kB / 412.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003366/0.3225, allocations: 375.6 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.3227, allocations: 103.3 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.3229, allocations: 155.5 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.3231, allocations: 175.2 kB / 413.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.813e-05/0.3232, allocations: 36 kB / 413.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.674e-05/0.3233, allocations: 32 kB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.3234, allocations: 95.77 kB / 413.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.3235, allocations: 139.2 kB / 413.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003468/0.3239, allocations: 338.6 kB / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3239, allocations: 0 / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3239, allocations: 0 / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3239, allocations: 0 / 414.1 MB, free: 12.74 MB / 334.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.001123/0.325, allocations: 0.6159 MB / 414.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3251, allocations: 8.031 kB / 414.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.361e-05/0.3252, allocations: 36.75 kB / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.3255, allocations: 268.5 kB / 415 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.3257, allocations: 142.2 kB / 415.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.92e-05/0.3258, allocations: 28.33 kB / 415.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.3269, allocations: 0.5455 MB / 415.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.3269, allocations: 0 / 415.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.327, allocations: 12 kB / 415.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.327, allocations: 8 kB / 415.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.3283, allocations: 0.5151 MB / 416.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.3296, allocations: 0.9985 MB / 417.2 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/0.3312, allocations: 0.4985 MB / 417.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006126/0.3318, allocations: 266.9 kB / 418 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.454e-05/0.3319, allocations: 16.12 kB / 418 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3319, allocations: 42.5 kB / 418 MB, free: 8.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.344e-06/0.3319, allocations: 0 / 418 MB, free: 8.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03616/0.3681, allocations: 5.725 MB / 423.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.3682, allocations: 149 kB / 423.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.3685, allocations: 198.5 kB / 424.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.363e-05/0.3686, allocations: 45.7 kB / 424.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.525e-05/0.3687, allocations: 141.7 kB / 424.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.3689, allocations: 194.4 kB / 424.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003077/0.3692, allocations: 110.7 kB / 424.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3693, allocations: 346.8 kB / 424.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.3709, allocations: 0.6149 MB / 425.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.3725, allocations: 0.8002 MB / 426.3 MB, free: 40 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00291/0.3754, allocations: 1.248 MB / 427.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3754, allocations: 0 / 427.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003445/0.3789, allocations: 1.406 MB / 429 MB, free: 13.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.3789, allocations: 8 kB / 429 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.3789, allocations: 8 kB / 429 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.379, allocations: 12 kB / 429 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.3803, allocations: 207.7 kB / 429.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.559e-05/0.3803, allocations: 15.92 kB / 429.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009123/0.3812, allocations: 95.78 kB / 429.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.3814, allocations: 35.98 kB / 429.4 MB, free: 12.92 MB / 350.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.0003313/0.3817, allocations: 181.5 kB / 429.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003511/0.3821, allocations: 158.1 kB / 429.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001849/0.3823, allocations: 67.3 kB / 429.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3823, allocations: 8 kB / 429.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.3823, allocations: 96 / 429.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.3823, allocations: 7.922 kB / 429.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004659/0.387, allocations: 2.171 MB / 431.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/0.387, allocations: 8.969 kB / 432 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007132/0.3877, allocations: 183.7 kB / 432.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.731e-05/0.3878, allocations: 16 kB / 432.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/0.3878, allocations: 23.94 kB / 432.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-05/0.3878, allocations: 23.92 kB / 432.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/0.3879, allocations: 15.94 kB / 432.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.3909, allocations: 1.553 MB / 433.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.3911, allocations: 160.8 kB / 433.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.516e-05/0.3912, allocations: 31.98 kB / 434 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005781/0.3918, allocations: 71.92 kB / 434 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/0.392, allocations: 103.7 kB / 434.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.572e-05/0.3921, allocations: 28 kB / 434.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.3922, allocations: 152.2 kB / 434.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3922, allocations: 0 / 434.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006361/0.3928, allocations: 120 kB / 434.4 MB, free: 7.492 MB / 350.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.0001563/0.393, allocations: 131.2 kB / 434.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.3957, allocations: 1.148 MB / 435.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.3957, allocations: 0 / 435.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009669/0.3967, allocations: 345.9 kB / 436 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008409/0.3975, allocations: 141.1 kB / 436.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.3999, allocations: 1.165 MB / 437.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.4004, allocations: 0.809 MB / 438.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000486/0.4009, allocations: 103.3 kB / 438.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.4012, allocations: 39.44 kB / 438.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4012, allocations: 0 / 438.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of Templates: time 0.01439/0.4156, allocations: 8.256 MB / 446.5 MB, free: 11.19 MB / 366.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