Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 101.8 kB / 17.73 MB, free: 5.324 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.0013/0.0013, allocations: 189.6 kB / 18.67 MB, free: 4.398 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.403/1.403, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 43.94 kB / 351.9 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3256, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00452/0.3302, allocations: 2.383 MB / 403.8 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.3322, allocations: 0.826 MB / 404.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/0.3324, allocations: 7.938 kB / 404.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.3329, allocations: 59.5 kB / 404.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.3331, allocations: 67.48 kB / 404.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.3338, allocations: 203.5 kB / 404.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004586/0.3342, allocations: 395.5 kB / 405.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.3345, allocations: 95.52 kB / 405.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.3347, allocations: 167.4 kB / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002643/0.335, allocations: 179.2 kB / 405.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.536e-05/0.3351, allocations: 36 kB / 405.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.883e-05/0.3352, allocations: 36 kB / 405.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.3353, allocations: 115.6 kB / 405.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.3355, allocations: 163 kB / 406.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004736/0.336, allocations: 367.8 kB / 406.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.336, allocations: 0 / 406.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.336, allocations: 0 / 406.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.336, allocations: 0 / 406.4 MB, free: 3.797 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00149/0.3375, allocations: 0.6665 MB / 407.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3376, allocations: 11.89 kB / 407.1 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.3377, allocations: 48.47 kB / 407.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005332/0.3382, allocations: 315.1 kB / 407.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/0.3385, allocations: 138.3 kB / 407.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.115e-05/0.3386, allocations: 36.28 kB / 407.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.3399, allocations: 0.5622 MB / 408.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3399, allocations: 8 kB / 408.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.34, allocations: 11.98 kB / 408.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.34, allocations: 8 kB / 408.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.3414, allocations: 0.5074 MB / 408.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.3431, allocations: 1.025 MB / 409.8 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.3448, allocations: 0.5063 MB / 410.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006649/0.3455, allocations: 263.4 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.744e-05/0.3456, allocations: 11.92 kB / 410.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.3456, allocations: 38.56 kB / 410.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 4.508e-06/0.3456, allocations: 7.984 kB / 410.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04049/0.3861, allocations: 5.759 MB / 416.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.3863, allocations: 144.9 kB / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.3867, allocations: 262.5 kB / 416.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.3868, allocations: 37.7 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.3869, allocations: 145.5 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/0.3872, allocations: 189.7 kB / 417.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002957/0.3875, allocations: 118.6 kB / 417.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3877, allocations: 350.8 kB / 417.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.3893, allocations: 0.611 MB / 418.2 MB, free: 7.711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/0.3912, allocations: 0.8041 MB / 419 MB, free: 6.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003338/0.3946, allocations: 1.24 MB / 420.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.3946, allocations: 3.938 kB / 420.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00395/0.3986, allocations: 1.405 MB / 421.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.3986, allocations: 8 kB / 421.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.3987, allocations: 8 kB / 421.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.3987, allocations: 8 kB / 421.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.4002, allocations: 211.6 kB / 421.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.589e-05/0.4002, allocations: 11.98 kB / 421.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.4013, allocations: 111.7 kB / 422 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.552e-05/0.4014, allocations: 27.98 kB / 422 MB, free: 3.715 MB / 334.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.0004522/0.4019, allocations: 189.6 kB / 422.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000436/0.4023, allocations: 165.1 kB / 422.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.4026, allocations: 67.61 kB / 422.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.4026, allocations: 8 kB / 422.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.4026, allocations: 0 / 422.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.4026, allocations: 7.984 kB / 422.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00541/0.408, allocations: 2.179 MB / 424.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.51e-05/0.4082, allocations: 8 kB / 424.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009181/0.4091, allocations: 187.7 kB / 424.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.383e-05/0.4091, allocations: 16 kB / 424.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.807e-05/0.4092, allocations: 24.41 kB / 424.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-05/0.4092, allocations: 23.92 kB / 424.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/0.4092, allocations: 15.94 kB / 424.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003682/0.4129, allocations: 1.56 MB / 426.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000364/0.4133, allocations: 176.6 kB / 426.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.4135, allocations: 28.17 kB / 426.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007042/0.4142, allocations: 71.92 kB / 426.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.4145, allocations: 103.6 kB / 426.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.079e-05/0.4145, allocations: 32 kB / 426.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002593/0.4148, allocations: 182 kB / 427 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4148, allocations: 4 kB / 427 MB, free: 14.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009333/0.4157, allocations: 124 kB / 427.2 MB, free: 14.2 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.0002572/0.416, allocations: 151 kB / 427.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003262/0.4193, allocations: 1.131 MB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.4193, allocations: 4 kB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.4205, allocations: 338.5 kB / 428.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.4217, allocations: 149.3 kB / 428.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.4247, allocations: 1.261 MB / 430.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005693/0.4253, allocations: 0.8285 MB / 431 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004014/0.4257, allocations: 47.42 kB / 431.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4257, allocations: 0 / 431.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of Templates: time 0.01423/0.4399, allocations: 7.405 MB / 438.5 MB, free: 2.715 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches