Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002028/0.002028, allocations: 127.4 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002429/0.002429, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.5/1.5, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 51.92 kB / 373.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1056, allocations: 53.33 MB / 426.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004614/0.1102, allocations: 2.399 MB / 429.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.1121, allocations: 0.8728 MB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003008/0.1124, allocations: 11.88 kB / 430.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.1127, allocations: 51.56 kB / 430.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003096/0.113, allocations: 71.42 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006731/0.1137, allocations: 203.5 kB / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005625/0.1143, allocations: 395.5 kB / 430.8 MB, free: 284 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1145, allocations: 71.5 kB / 430.8 MB, free: 208 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003856/0.1148, allocations: 187.4 kB / 431 MB, free: 20 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2046/0.3194, allocations: 175.4 kB / 431.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.3195, allocations: 34.75 kB / 431.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.858e-05/0.3196, allocations: 34.72 kB / 431.3 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.3198, allocations: 109.6 kB / 431.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.32, allocations: 164 kB / 431.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005119/0.3205, allocations: 372.4 kB / 431.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3205, allocations: 0 / 431.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3205, allocations: 1.656 kB / 431.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.3205, allocations: 0 / 431.9 MB, free: 8.27 MB / 350.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.001273/0.3218, allocations: 0.6775 MB / 432.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.3218, allocations: 16.06 kB / 432.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.3219, allocations: 45.8 kB / 432.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.3223, allocations: 312.4 kB / 432.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.3225, allocations: 136.2 kB / 433.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.635e-05/0.3226, allocations: 27.81 kB / 433.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.3238, allocations: 0.5758 MB / 433.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.3238, allocations: 1.156 kB / 433.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.576e-05/0.3238, allocations: 9.812 kB / 433.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.3238, allocations: 8.344 kB / 433.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.3252, allocations: 0.5055 MB / 434.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.3266, allocations: 1.031 MB / 435.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.3283, allocations: 483.2 kB / 435.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006626/0.329, allocations: 240.7 kB / 435.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.538e-05/0.329, allocations: 6.703 kB / 435.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.3291, allocations: 42.31 kB / 436 MB, free: 6.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.864e-06/0.3291, allocations: 0 / 436 MB, free: 6.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04104/0.3701, allocations: 5.77 MB / 441.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.3702, allocations: 157.4 kB / 441.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.3705, allocations: 252.7 kB / 442.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.287e-05/0.3706, allocations: 39.95 kB / 442.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.035e-05/0.3707, allocations: 153.1 kB / 442.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.3709, allocations: 202.5 kB / 442.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/0.3712, allocations: 116.1 kB / 442.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.873e-05/0.3713, allocations: 341.7 kB / 443 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.3729, allocations: 0.62 MB / 443.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.3746, allocations: 0.7975 MB / 444.4 MB, free: 4.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003048/0.3776, allocations: 1.249 MB / 445.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3776, allocations: 2.25 kB / 445.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003713/0.3814, allocations: 1.403 MB / 447.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.3814, allocations: 6.531 kB / 447.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.3814, allocations: 9.719 kB / 447.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.732e-05/0.3814, allocations: 13.5 kB / 447.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.3828, allocations: 213.5 kB / 447.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.696e-05/0.3828, allocations: 13.69 kB / 447.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.3838, allocations: 101.6 kB / 447.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.221e-05/0.3839, allocations: 26.38 kB / 447.4 MB, free: 3.039 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.0003573/0.3843, allocations: 197.3 kB / 447.6 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/0.3846, allocations: 165.2 kB / 447.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.3848, allocations: 68.19 kB / 447.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.3848, allocations: 9.406 kB / 447.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.3848, allocations: 0 / 447.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.3848, allocations: 5.594 kB / 447.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004742/0.3896, allocations: 2.182 MB / 450.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/0.3896, allocations: 14.69 kB / 450.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007533/0.3903, allocations: 183.1 kB / 450.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.965e-05/0.3904, allocations: 13.91 kB / 450.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.345e-05/0.3904, allocations: 28.19 kB / 450.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-05/0.3904, allocations: 20.89 kB / 450.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.379e-05/0.3904, allocations: 17.44 kB / 450.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003032/0.3935, allocations: 1.566 MB / 451.9 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.3937, allocations: 172.4 kB / 452.1 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.97e-05/0.3938, allocations: 31.86 kB / 452.1 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005781/0.3944, allocations: 77.64 kB / 452.2 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3946, allocations: 96.53 kB / 452.3 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.589e-05/0.3946, allocations: 30.34 kB / 452.3 MB, free: 52 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002725/0.3949, allocations: 185 kB / 452.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3949, allocations: 192 / 452.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008614/0.3958, allocations: 124.1 kB / 452.6 MB, free: 15.91 MB / 366.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.0002142/0.396, allocations: 145.9 kB / 452.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00297/0.3989, allocations: 1.034 MB / 453.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.3989, allocations: 5.125 kB / 453.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.4, allocations: 333.8 kB / 454.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000962/0.401, allocations: 141.3 kB / 454.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.4035, allocations: 1.239 MB / 455.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005203/0.4041, allocations: 0.8273 MB / 456.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004817/0.4045, allocations: 101.8 kB / 456.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003045/0.4048, allocations: 40.58 kB / 456.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.4048, allocations: 5.219 kB / 456.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of Templates: time 0.01514/0.42, allocations: 8.587 MB / 465 MB, free: 8.906 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.058414280414581]