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.001506/0.001506, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001897/0.001897, allocations: 204.2 kB / 23.73 MB, free: 4.379 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.754 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.00163/0.00163, allocations: 47.92 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.372, allocations: 53.37 MB / 431.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004409/0.3764, allocations: 2.296 MB / 433.9 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.3783, allocations: 0.83 MB / 434.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.3785, allocations: 15.88 kB / 434.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.3788, allocations: 51.55 kB / 434.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002388/0.379, allocations: 67.48 kB / 434.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005946/0.3796, allocations: 203.6 kB / 435 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.3801, allocations: 391.5 kB / 435.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.3803, allocations: 75.86 kB / 435.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003421/0.3806, allocations: 183.3 kB / 435.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002691/0.3809, allocations: 183.3 kB / 435.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.635e-05/0.381, allocations: 32 kB / 435.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.908e-05/0.381, allocations: 36 kB / 435.9 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.3812, allocations: 119.6 kB / 436 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.3813, allocations: 131.3 kB / 436.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005407/0.3819, allocations: 376.7 kB / 436.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3819, allocations: 3.938 kB / 436.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3819, allocations: 4 kB / 436.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.3819, allocations: 0 / 436.5 MB, free: 1.723 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001449/0.3833, allocations: 0.6142 MB / 437.1 MB, free: 1.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3834, allocations: 8.031 kB / 437.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.919e-05/0.3835, allocations: 44.7 kB / 437.2 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005204/0.384, allocations: 249.4 kB / 437.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003457/0.3843, allocations: 347.9 kB / 437.8 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/0.3844, allocations: 32.38 kB / 437.8 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.3857, allocations: 0.57 MB / 438.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.3858, allocations: 4 kB / 438.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.3858, allocations: 12 kB / 438.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.507e-06/0.3858, allocations: 4 kB / 438.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.3873, allocations: 0.5158 MB / 438.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.3888, allocations: 0.8601 MB / 439.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.3904, allocations: 474.5 kB / 440.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006523/0.391, allocations: 247.7 kB / 440.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.3911, allocations: 15.98 kB / 440.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.3911, allocations: 46.36 kB / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.773e-06/0.3911, allocations: 0 / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04125/0.4323, allocations: 5.785 MB / 446.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/0.4325, allocations: 145 kB / 446.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/0.4329, allocations: 273.8 kB / 446.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.397e-05/0.433, allocations: 37.7 kB / 446.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.4332, allocations: 149.7 kB / 446.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002482/0.4334, allocations: 202.3 kB / 447.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003158/0.4337, allocations: 122.6 kB / 447.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.4339, allocations: 350.7 kB / 447.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.4355, allocations: 0.6188 MB / 448.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/0.4374, allocations: 0.8043 MB / 449 MB, free: 4.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003325/0.4407, allocations: 1.264 MB / 450.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.4407, allocations: 4 kB / 450.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00396/0.4447, allocations: 1.407 MB / 451.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.4447, allocations: 8 kB / 451.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.4447, allocations: 4.281 kB / 451.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.46e-05/0.4448, allocations: 16 kB / 451.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.4462, allocations: 207.6 kB / 451.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.978e-05/0.4462, allocations: 8 kB / 451.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.4472, allocations: 103.8 kB / 452 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-05/0.4473, allocations: 32 kB / 452 MB, free: 1.703 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0004362/0.4478, allocations: 193.6 kB / 452.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003686/0.4481, allocations: 161.7 kB / 452.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001934/0.4483, allocations: 63.62 kB / 452.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.4483, allocations: 12.08 kB / 452.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.4483, allocations: 3.938 kB / 452.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.4484, allocations: 11.88 kB / 452.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005177/0.4535, allocations: 1.934 MB / 454.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.393e-05/0.4536, allocations: 12.03 kB / 454.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/0.4544, allocations: 183.7 kB / 454.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.962e-05/0.4544, allocations: 16 kB / 454.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.4544, allocations: 24 kB / 454.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.729e-05/0.4545, allocations: 19.88 kB / 454.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/0.4545, allocations: 15.94 kB / 454.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00359/0.4581, allocations: 1.581 MB / 456.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.4584, allocations: 107.6 kB / 456.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.4585, allocations: 28 kB / 456.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006147/0.4591, allocations: 79.84 kB / 456.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.4593, allocations: 103.7 kB / 456.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.805e-05/0.4593, allocations: 32 kB / 456.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.4596, allocations: 193.2 kB / 456.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4596, allocations: 0 / 456.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007343/0.4603, allocations: 124 kB / 456.9 MB, free: 12.5 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0002171/0.4605, allocations: 138.9 kB / 457 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002848/0.4634, allocations: 1.041 MB / 458.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/0.4634, allocations: 5.375 kB / 458.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.4644, allocations: 333.9 kB / 458.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.4655, allocations: 161.6 kB / 458.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.4682, allocations: 1.247 MB / 459.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.4685, allocations: 232.7 kB / 460 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00051/0.469, allocations: 96.08 kB / 460.1 MB, free: 9.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002913/0.4693, allocations: 39.44 kB / 460.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4693, allocations: 0 / 460.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of Templates: time 0.01799/0.4873, allocations: 9.658 MB / 469.8 MB, free: 15.46 MB / 382.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.159373990260065]